note 20562 deleted from function.split by sander
| From: | sander@php.net | Date: | Mon, 08 Apr 2002 13:43:59 +0000 |
| Subject: | note 20562 deleted from function.split by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-28953@lists.php.net to get a copy of this message | ||
This is somewhat OT, but the example Perl code
$chars = split('', $str)
shown above is not correct; it should be @chars instead of $chars. Otherwise you'd get the
number of characters, not an array of all characters in $str.