[PHP] Library Function

2002-06-25 Thread Uma Shankari T.



Hello,


 Is there any built in function in php to read character by character of
the value stored in the variable...??


Thanks  Regards,
Ums


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




Re: [PHP] Library Function

2002-06-25 Thread Jason Wong

On Tuesday 25 June 2002 16:31, Uma Shankari T. wrote:
 Hello,


  Is there any built in function in php to read character by character of
 the value stored in the variable...??

Assuming your variable holds a string then you could do:

$doo = dah;
echo $doo{2}; // displays 'h'

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
This is National Non-Dairy Creamer Week.
*/


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