👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

php string length

In PHP, the function strlen(string) return the length of a string :

// Displays 6
echo strlen('abcdef'); 

$str = "abcdefg";
// Displays 7
echo strlen($str);

More