echo strlen('plus2net.com'); // Ouptut is 12
Output is the length of the string in number of bytes.
This function is required for form input validation. We can check if any input field is entered blank.
PHP function strlen returns number of bytes inside the string including blank space. If you want blank space to be removed then you can apply
string replace function str_replace to the string before applying strlen.
$string="This is my string";
echo "Length of the string = ".strlen($string);
what are the php codes of counting different letters from 2 words that given by the users and each word will be equal to the number of letters that are different to the other words.
since in the word cat,there is no letter c in the other word so it equals to 1,
then in the second word, there is no letter b and r in the first word so it equals to 2,tnx,,i need ur ideas.
nice stuff. home 4 the best. tank