strlen.php : strlen « String « PHP






strlen.php

 
<?php
   $pswd = "secretpswd";
   if (strlen($string) < 10) echo "Password is too short!";
?>
  
  








Related examples in the same category

1.Calculating the length of a string
2.Checking String Length
3.Checking String Length: int strlen ( string string )
4.Concisely checking the length of a trimmed string
5.int strlen ( string str ) returns the number of characters in it: