You can simply use the PHP strlen() function to get the length of a string. The strlen() function return the length of the string on success, and 0 if the string is empty.
Let's take a look at the following example to understand how it actually works:
Use the PHP
strlen()functionYou can simply use the PHP
strlen()function to get the length of a string. Thestrlen()function return the length of the string on success, and 0 if the string is empty.Let's take a look at the following example to understand how it actually works:
need an explanation for this answer? contact us directly to get an explanation for this answer