note 73758 added to function.xml-parser-set-option

From: Date: Fri, 09 Mar 2007 04:08:43 +0000
Subject: note 73758 added to function.xml-parser-set-option
Groups: php.notes 
Request: Send a blank email to php-notes+get-124257@lists.php.net to get a copy of this message
In the function below, you need to update two lines if you don't want php to throw warnings. change these two: $elements[$index]['attributes'] = $tag['attributes']; $elements[$index]['content'] = $tag['value']; to this: $elements[$index]['attributes'] = empty($tag['attributes']) ? "" : $tag['attributes']; $elements[$index]['content'] = empty($tag['value']) ? "" : $tag['value']; ---- Server IP: 216.194.113.175 Probable Submitter: 72.144.180.7 ---- Manual Page -- http://www.php.net/manual/en/function.xml-parser-set-option.php Edit -- https://master.php.net/note/edit/73758 Del: integrated -- https://master.php.net/note/delete/73758/integrated Del: useless -- https://master.php.net/note/delete/73758/useless Del: bad code -- https://master.php.net/note/delete/73758/bad+code Del: spam -- https://master.php.net/note/delete/73758/spam Del: non-english -- https://master.php.net/note/delete/73758/non-english Del: in docs -- https://master.php.net/note/delete/73758/in+docs Del: other reasons-- https://master.php.net/note/delete/73758 Reject -- https://master.php.net/note/reject/73758 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124257) next »