note 29684 added to function.implode
| From: | edwin at yoursite dot nl | Date: | Fri, 21 Feb 2003 13:45:03 +0000 |
| Subject: | note 29684 added to function.implode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44313@lists.php.net to get a copy of this message | ||
Since the NULL value is treated like the empty string if used in string operations, it's
possible to use the following line of code:
$string = join ( NULL, $array );
It makes code better readable, since it might be difficult to see the difference in two single
quotes and a double quote ( '' and " ) in some fonts...
--
http://www.php.net/manual/en/function.implode.php
http://master.php.net/manage/user-notes.php?action=edit+29684
http://master.php.net/manage/user-notes.php?action=delete+29684
http://master.php.net/manage/user-notes.php?action=reject+29684