note 52160 deleted from function.strlen by cmb
| From: | cmb@php.net | Date: | Sun, 25 Jul 2021 14:16:54 +0000 |
| Subject: | note 52160 deleted from function.strlen by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-216652@lists.php.net to get a copy of this message | ||
Note Submitter: http://nsk.wikinerds.org
----
Beware: strlen() counts new line characters at the end of a string, too!
<?php
$a = "123\n";
echo "<p>".strlen($a)."</p>";
?>
The above code will output 4.