⭐ in reply to How do I get the Nth Character of a String?
$str = "123456789"; $first = substr($str, 0, 1); #returns the first character $third = substr($str, 2, 1); #returns the third character [download]