note 36071 added to ref.xml
| From: | php-general at lists dot php dot net | Date: | Wed, 24 Sep 2003 20:49:28 +0000 |
| Subject: | note 36071 added to ref.xml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-57069@lists.php.net to get a copy of this message | ||
TO: mreilly at ZEROSPAM dot MAC dot COM
ADD BEFORE:
// Evaluate the statement we just created
eval($str_array_define);
CODE:
if (strlen($str_array_define))
{
$str_array_define .= "[] = '" . $str_trimmed_data . "';";
}
else
{
$str_array_define .= " = '" . $str_trimmed_data . "';";
};
Would add a better handling of the output. Say if there where two groups with the same name it would
put them in an array rather then overwriting there values.
----
Manual Page -- http://www.php.net/manual/en/ref.xml.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36071
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36071&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36071&report=yes