12-12-2007, 12:20 PM
|
#5 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
Quote:
Originally Posted by Karl
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!
Mark
__________________
"Life is a bitch, take that bitch on a ride"
|
|
|