Posts

Showing posts with the label strlen

How to measure length of a string ?

If you want to check a length of the string in php, just user strlen() function. It will return the given string length. See example: if ( strlen( $unknownString ) > 10 ) { echo "String has more than 10 characters"; }