Finding the Length of a String with strlen() : String Length « String « PHP






Finding the Length of a String with strlen()


<?
$membership = "asdfadsf";

if ( strlen( $membership ) == 4 )
    print "Thank you!";
else
    print "Your membership number must have 4 digits<P>";

?>
    
    
           
       








Related examples in the same category

1.Limit string length and display '...'