Re: String length property (avoid strlen)
| From: | Michael Wallner | Date: | Wed, 02 May 2007 10:25:45 +0000 |
| Subject: | Re: String length property (avoid strlen) | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969376226@lists.php.net to get a copy of this message | ||
Werner Beroux wrote:
> I found an interesting note that I quote here:
> "[4] [...] be sure to remember that PHP holds the length property of each
> string, and that it shouldn't be calculated with strlen()."
> --
> http://cvs.php.net/viewvc.cgi/php-src/CODING_STANDARDS?view=co
>
> Now I found nowhere anything else about this and strlen is described
> everywhere. Is it some kind of new feature of PHP6?
This is about C code not PHP code.
--
Michael