note 28627 rejected from ref.array by tularis
| From: | tularis@php.net | Date: | Sat, 18 Jan 2003 16:16:52 +0000 |
| Subject: | note 28627 rejected from ref.array by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-42361@lists.php.net to get a copy of this message | ||
I have a little problem, when I have this in my include document, and I call for the funcion with
the $parm. Then
it won't return a good array:
Array ( [0] => "test ","test2","test3"
But when I replace $parm with "test ","test2","test3" then
it wil do it OK:
Array ( [0] => test mango [1] => test2mango [2] => test3mango )
Here is my function?
function($parm) {
$av = array($parm);
array_walk($av, create_function('&$v,$k','$v = $v."mango";'));
print_r($av); // for PHP 3 use var_dump()
// outputs:
// Array
// (
// [0] => the mango
// [1] => a mango
// [2] => that mango
// [3] => this mango
// )
}
Can please someone help me?