Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

How to count string length in PHP embedded in Html? -3

How to count string length in php?

What is the definition of strlen() Function?

The strlen() Function is pre-defined function in php which returns the length of a given string. It calculates the length of the string including all the whitespaces and special characters.

Therefore, You can easily use this function to count the length.

Entering input: strlen() function

Output of this string: Length of this string :17