How will you find the length of a string in PHP?

Submitted by: Administrator
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!");
?>
This will produce following result −

12
Submitted by:

Read Online Sr. PHP Programmer Job Interview Questions And Answers