Ahmed Abdel-Aliem wrote:

hi
if i have for example this variable

$name = "John";

how can i echo the first letter only so the result on the browser will be "J"

can anyone help ?

echo $name{0};

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



Reply via email to