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.          |
`------------------------------------------------------------'

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

Reply via email to