note 36071 deleted from ref.xml by didou
| From: | didou@php.net | Date: | Thu, 25 Sep 2003 07:39:37 +0000 |
| Subject: | note 36071 deleted from ref.xml by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57082@lists.php.net to get a copy of this message | ||
Note Submitter:
----
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.