class Foo
{
function hello(&$array)
{
$array[] = "hello";
}
}$array = null; $foo = & new foo(); $foo->hello($array); print_r($array)
Output:
Array
(
[0] => hello
)class Foo extends PEAR_Autoloader
{
function hello(&$array)
{
$array[] = "hello";
}
}$array = null; $foo = & new foo(); $foo->hello($array); print_r($array)
Output:
Nothing!
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
