Re: first letter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Check this out...
http://us2.php.net/manual/en/function.substr.php

----- Original Message -----
From: Ahmed Abdel-Aliem <me2resh@xxxxxxxxx>
Date: Monday, December 20, 2004 12:59 pm
Subject:  first letter

> 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 ?
> 
> 
> 
> -- 
> Ahmed Abdel-Aliem
> www.ApexScript.com
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux