mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
7 lines
287 B
Plaintext
7 lines
287 B
Plaintext
|
|
||
|
Doing a for loop to iterate over a string character-by-character may be
|
||
|
slow, since accessing a character at offset n requires us to scan the string
|
||
|
from the beginning until the required codepoint is accessed.
|
||
|
|
||
|
strlen() will return the number of codepoints which have to be calculated.
|