note 62118 deleted from function.implode by nlopess

From: Date: Fri, 14 Apr 2006 11:48:37 +0000
Subject: note 62118 deleted from function.implode by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108055@lists.php.net to get a copy of this message
Note Submitter: ice at secondlifeservers dot com ---- The 4.3 modification to implode means that it can optionally recieve 1 variable, not 0 variables: <?php $array = array("Ahern" , "Morris" , "Lusk"); echo implode($array); ?> would output: AhernMorrisLusk while: <?php $array = array("Ahern" , "Morris" , "Lusk"); echo implode(", ",$array); ?> would output: Ahern, Morris, Lusk And implode(glue, array) the prefered sintax over implode(array). If there is nothing for implode to join, there's nothing for implode to use. Above example tested on 4.3.11

« previous php.notes (#108055) next »