How to count the number of elements in an array?

How to count the number of elements in an array?

Team Leader Asked on February 11, 2017 in PHP.
Add Comment
1 Answer(s)
<?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.