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 ?

$name[0]

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



Reply via email to