> $name = "John";
> 
> how can i echo the first letter only so the result on the browser will be "J"

echo $name{0};

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to