Re: Library Function
| From: | Jason Wong | Date: | Tue, 25 Jun 2002 10:18:50 +0000 |
| Subject: | Re: Library Function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103753@lists.php.net to get a copy of this message | ||
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.
*/