PHP strlen() function

The strlen() function is used to find the length of a string.

Let's find the length of our string "Hello world!":

<?php
echo strlen("Hello world!");
?>

output of the code

12

No comments:

Post a Comment