Home Tutorial Php Phpbeginners The strlen() function

 
 

The strlen() function
Posted on: February 1, 2011 at 12:00 AM
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 :

strlen(string)

The below example gives you a clear idea :

Example :

<?php
echo strlen("Welcome to Devmanuals");
?>

Output :

The output of the above code should be :

 21

Related Tags for The strlen() function:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.