How correct and what are the differences
$str='12345'; echo $str[2]; echo $str{2}; echo substr($str, 2, 1); How correct and what are the differences
$str='12345'; echo $str[2]; echo $str{2}; echo substr($str, 2, 1); Source: https://ru.stackoverflow.com/questions/254010/
All Articles