The following is not working for me when $text exceeds 100 characters. The if statement fails to run.
if (strlen($text >= 100))
{
// do something
}
What am I doing wrong here?
The following is not working for me when $text exceeds 100 characters. The if statement fails to run.
if (strlen($text >= 100))
{
// do something
}
What am I doing wrong here?
You need strlen($text) > 100, note where I put the brackets
Thanks!