|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-07-30 17:38 UTC] andrey at cvs dot php dot net
[1999-07-30 18:04 UTC] zeev at cvs dot php dot net
[1999-07-30 18:35 UTC] zeev at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Jun 30 09:00:02 2026 UTC |
Complied as cgi binary. When implode is passed an array with an element that contains an array the contents of the contained array is lost.. eg. <?php $tmp= array ( array( "x"=>"first_item", "y"=>"second_Item", "z"=>"third_item" ) ); $cpy=$tmp; // echo "size at start ".sizeof($tmp[0])."<BR>"; echo "1st implode call: ".implode($cpy,"+")."<BR>"; echo "2nd implode call: ".implode($tmp[0],"+")."<BR>"; echo "size at end ".sizeof($tmp[0])."<BR>"; ?> gives the following output: ============================== 1st implode call: Array Warning: Bad arguments to implode() in /usr/local/apache/htdocs/Widget/test.php on line 12 2nd implode call: size at end 1 ============================== However uncommenting the first 'echo sizeof()' line gives the following result; ============================== size at start 3 1st implode call: Array 2nd implode call: first_item+second_Item+third_item size at end 3 ============================== something not being initialised in implode() ?