Re: string size in bytes
| From: | Philip Hallstrom | Date: | Mon, 13 Feb 2006 02:13:42 +0000 |
| Subject: | Re: string size in bytes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230287@lists.php.net to get a copy of this message | ||
i need to know how many bytes are in a string example: $string = "blah"; string == how many bytesWell, if you're willing to ignore all the unicode stuff, you can use strlen() since 1 byte = 1 character. Check that manpage to see if there's a unicode safe version.
also i need to know how to find out how fast a page renders example; page rendered in 1.114 secondsmicrotime(). Call it at the beginning of your script, then at the end, and substract the two values to see how long it took.