Just pass it....either by reference or not.
Try this code:
<?php
function testme( $test_array )
{
for( $loop = 0; $loop < count($test_array); $loop++ )
print $test_array[$loop] . "\n";
}
function testme_ref( $test_array )
{
for( $loop = 0; $loop < count($test_array); $loop++ )
print $test_array[$loop] . "\n";
}
$blah = array( 'one', 'two', 'three' );
testme( $blah );
testme_ref( &$blah );
?>
Testme() does a simple pass of the variable (in this case, the $blah array) to the function. This makes a copy of the variable and nothing you do to it inside the function will effect the value of the original variable outside of the function.
If you wish to change the value of the original variable, the best way would be to pass by reference (which passes the address of the variable, not just a copy of the contents). This is how testme_ref() works, though it doesn't actually change the variable at all.
Hope this helps!
-Rich