note 60486 added to function.implode

From: Date: Sun, 08 Jan 2006 20:28:29 +0000
Subject: note 60486 added to function.implode
Groups: php.notes 
Request: Send a blank email to php-notes+get-101420@lists.php.net to get a copy of this message
Implode seems to accept the glue and pieces as either parameter, at least in 5.0.5: <?php echo "PHP Version: ".phpversion()."\n"; $foo = array(1,3,5,7); echo "Test Array: "; var_dump($foo); echo "Test 1: ".implode($foo, ',')."\n"; echo "Test 2: ".implode(',', $foo)."\n"; ?> Output: PHP Version: 5.0.5 Test Array: array(4) { [0]=> int(1) [1]=> int(3) [2]=> int(5) [3]=> int(7) } Test 1: 1,3,5,7 Test 2: 1,3,5,7 ---- Manual Page -- http://www.php.net/manual/en/function.implode.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60486 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60486&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60486&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60486&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60486&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60486&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60486&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60486&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60486&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#101420) next »