I have created a form, a text box and a button. When I enter text into the text-box and click the button the text I entered is supposed to show up beneath the button which it does. My question would be how do you get the text when entered and outputted to also show up the amount of characters that the text consists of? I've looked on PHP.net that you can use strlen since that counts the amount of characters but for some reason my code wont work with this. I'm not looking for the answer I'm just looking for helpful advice of the next step I should take because I'm confused on what I'm doing wrong. Thanks for the help everyone.
$count = strlen('');
echo "The word has " . $count . " characters.<br />";