note 12925 deleted from function.strlen by dams
| From: | dams@php.net | Date: | Sat, 27 Jul 2002 16:24:03 +0000 |
| Subject: | note 12925 deleted from function.strlen by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-33677@lists.php.net to get a copy of this message | ||
The code I just submitted works great (it omits the null characters) with one minor exception: if
you string had a zero, ascii 48, it'll omit it along with the null.
so if your string is this
$s="i have 20 points"
your output will be
i have 2