RE: How to count the number of elements in an array?

How to count the number of elements in an array?

B Mathur Team Leader Asked on February 11, 2017 in PHP.
Add Comment
1 Answers
<?php

$lang=array("java","php","html");

echo count($lang);

?>


Output: 3

Team Leader Answered on March 14, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.