note 67634 deleted from function.strlen by bjori
| From: | bjori@php.net | Date: | Fri, 09 Jun 2006 09:31:45 +0000 |
| Subject: | note 67634 deleted from function.strlen by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-114124@lists.php.net to get a copy of this message | ||
Note Submitter: nitrous at fuckoff dot com
Reason: in docs
----
Don't use count with strings, and don't use strlen with arrays.
<?php
echo strlen(array()); // equals 5
echo strlen(array(1,2,3)); // equals 5
echo strlen(arrays_are_cool_man); // equals 19
?>
See the pattern?