Hi!

How can I pass an array parameter by reference?
I tried something similar:

function my_function($argument) {
    $argument[0]="test";
}

my_function(&$array);
echo $array[0];

but the echo function returns "Array".

Can anybody help me?

Thanks!

Andrea



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to