Accessing a Char in an Array

From: Date: Mon, 20 Dec 2004 21:49:44 +0000
Subject: Accessing a Char in an Array
Groups: php.general 
Request: Send a blank email to php-general+get-204765@lists.php.net to get a copy of this message
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 );

« previous php.general (#204765) next »