Friday, April 3, 2015

Get the length of a string - PHP Snippet

Get the length of a string - PHP Snippet

This php snippet use strlen() function to return the length of a string (number of characters).


echo strlen("Hello world!!!"); // outputs 14

Disqus Comments