Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started 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