Answers

Question and Answer:

  Home  Senior PHP Programmer

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

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

 177 views

More Questions for you: