Share on Google+Share on Google+

The strlen() function

This section contains the detail about strlen() function in PHP.

The strlen() function

The strlen() function is used to find the length of a string.

Syntax is given below :


The below example gives you a clear idea :

Example :

echo strlen("Welcome to Devmanuals");

Output :

The output of the above code should be :



Posted on: February 1, 2011 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.