Re: First letter

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

 



> From: matthew perry <mwperry@xxxxxxxxxxx>

> What PHP function returns just the first letter of a string?

echo substr($str,0,1);

or

echo $str{0};

---John Holmes...

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux