A while ago I've had a discussion about the optimal way to determine a string length in PHP. The obvious way is to use strlen()
$str =
'This is a string';
echo strlen($str);
// 16 However to check the length of a minimal requirement it's actually not that optimal to use strlen. The following is actually much faster (roughly 5 times)
Continue reading "String length vs isset to check string length's"