Sunday 27 July 2014

Filled Under:

strlen() in php

strlen() Function:

                             strlen() function that is use to find the length of string. It is more commonly use function in php. More commonly use of this function is get the length of password that user entered.

Syntax:

           Strlen(string);

Example:

<?php
$str=”hello php”;
echo strlen($str);
?>

Output:

                         9


Note :whitespaces are also include in string “hello php”.




0 comments:

Post a Comment