|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-03-29 10:38 UTC] dave dot kingdon at ukonline dot co dot uk
When passing an array to a function declared without arguments, the contents of the array are replaced with 'Array'. It appears somewhere PHP is assigning the argument to itself literally, which isn't nice :) thanks, Dave System Linux arthur 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686 unknown Configure Command './configure' '--with-sybase-ct' '--with-apache=/usr/local/src/packages/apache_1.3.12' '--enable-track-vars' '--with-config-path-file=/etc' '--with-pgsql' '--with-mysql=/usr/local/mysql' PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 09:00:02 2025 UTC |
Here's my quickie test. <?php function test() { var_dump(func_get_arg(0)); } $mya = array( array(1,2,3), array(3,4,5) ); test("$mya"); test($mya); ?> string(5) "Array" array(2) { [0]=> array(3) { [0]=> int(1) [1]=> int(2) [2]=> int(3) } [1]=> array(3) { [0]=> int(3) [1]=> int(4) [2]=> int(5) } } As you can see it works just fine(> 4.0.2), you just can't put quotes around it (it isnt a string after all), which you may be doing. -Chris