Logo

Programming-Idioms

History of Idiom 169 > diff from v33 to v34

Edit summary for version 34 by Fyerfox:
New PHP implementation by user [Fyerfox]

Version 33

2018-04-03, 08:08:45

Version 34

2018-04-06, 07:09:38

Idiom #169 String length

Assign to integer n the number of characters of string s.

This can be different from the number of bytes of s.

Idiom #169 String length

Assign to integer n the number of characters of string s.

This can be different from the number of bytes of s.

Extra Keywords
size
Extra Keywords
size
Code
$n = strlen($s);
Doc URL
http://php.net/manual/en/function.strlen.php