Answers for "array elements count php"

PHP
1

count an array in php

<?php
 $vegetables = ["Cabbage", "Carrot", "Lettuce"];
 $arrayLength = count($vegetables);
 echo $arrayLength; //returns 3
?>
Posted by: Guest on June-20-2021

Code answers related to "array elements count php"

Browse Popular Code Answers by Language