The untold secrets of php coding

1. Count Characters in a String To do this, I’ve usually just used the function strlen(). However, there is a faster method of doing this. Take a look at the following code example: <?php$string = ‘testing’; if(isset($string[6]))echo “The string ‘$string’ is at least 7 characters long.”;elseecho “The string ‘$string’ is less than 7 characters long.”; You…

This content is for Silver Subscription Six months and Gold subscription One year members only.
Login Join Now
SEE ALSO  How to remeber anything very easily
%d bloggers like this: