Quicker String Verification
View Single Post
12-12-2007, 12:20 PM
Join Date: Nov 2007
Originally Posted by
Nice fine indeed. However, the question is, are you going to sacrifice the "readability" of your conditionals for the sake of a few milliseconds? Personally, I wouldn't
I'm with Karl on this one. The strlen function typs really easy, can be remembered by even the beginners and ofcourse, be used for a LOT of other diffirent things. I use $string[$i] for displaying the last character in a sentence. For example, $i = strlen($string); echo $string[$i];.
Very nice find, but I wouldn't use it either. Maybe there might be some who find it more useful than me but personally, I do not see the gain.
Non the less, good job! And try what Wildhoney said!
"Life is a bitch, take that bitch on a ride"
View Public Profile
Send a private message to ReSpawN
Visit ReSpawN's homepage!
Find More Posts by ReSpawN