PHP Programs

PHP program to find length of given string

In this program we going to find out length of given string using strlen() function . strlen() returns integer value.



    echo strlen("HELLO WORLD");


When Run The Program Following Output:



We can use the PHP function strlen() to get the length of a string. The strlen() function return the length of the string in integer value, and returns 0 if the string is empty.

Releted Programs

© 2017 codewmAll rights reserved.