- Version
- Download 103
- File Size 396.92 KB
- File Count 1
- Create Date September 14, 2016
- Last Updated September 14, 2016
Count number of characters in PHP
Count number of characters in PHP
Sample script in PHP that will count the number of characters entered by the user in a textbox.
PHP Script:
< ?php
if(isset($_POST['send']))
{
$str = $_POST['string'];
echo "There are ".strlen($str)." character(s)";
}
?>