How do I find the length of a string in PHP?
Here is a simple example of how this works:
<?php
$data = "hello world";
echo strlen($data); //11
?>
And that's all there is to it - simple but very well worth knowing because it is something that you'll need to know time and time again.
Comment on this Question and Answer >>>
ASK A QUESTION
More strings PHP Questions
How do I make sure a string is a certain length?How do I print text to the screen?
How can I remove spaces from around a string value?
How do I check if a string contains HTML?
How do I reverse a string in PHP?
