Contact: aviboots(AT)netvision.net.il
42,223 questions
54,935 answers
573 users
$str = "c++ c php javascript rust"; $words = explode(" ", $str); echo "The length of the last word is: " . strlen($words[count($words) - 1]); /* run: The length of the last word is: 4 */