Accessing a Char in an Array

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

 



In an earlier thread labeled "first letter", it was suggested that
substr() be used.

>Check this out... http://us2.php.net/manual/en/function.substr.php.

So my question is:

What is faster using substr or accessing the string like an array?

I know I could test this myself, but I thought someone may have done
this already.

Regards,

Justin Palmer
__________________________
KISS (Keep It Simple, SEARCH)!
Google::getUri( http://www.google.com );
Archives::getUri( http://marc.theaimsgroup.com/?l=php-general );

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux