Re: What is PHP equivalent to JavaScript's charAt()....

From: Date: Thu, 04 Dec 2003 23:01:24 +0000
Subject: Re: What is PHP equivalent to JavaScript's charAt()....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-171922@lists.php.net to get a copy of this message
On Thu, 2003-12-04 at 17:49, Scott Fletcher wrote: > Hi Everyone! > > The function in JavaScript which is charAt(), I am wondering what would > be this same function in PHP? I couldn't find it so it is in a different > function name I don't know about. $foo = 'this is my text'; $char = $foo{9}; // $char will be 'y'. Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#171922) next »