#55445Use array access instead of strpos($str, n, 1)
Description
A call to strpos can be avoided in case the ‘count’ parameter is 1.
Use:
$str{n}
Instead of:
strpos($str, n, 1)
A call to strpos can be avoided in case the ‘count’ parameter is 1.
Use:
$str{n}
Instead of:
strpos($str, n, 1)