Answers for "sarray lenght php"

PHP
3

php array lenght

<?php
$cars=array("Volvo","BMW","Toyota");
echo count($cars);
?>
Posted by: Guest on July-28-2020
1

array length php

// https://www.php.net/manual/en/function.count.php
$a = array(1,3,5);
echo count($a);
// -> 3
Posted by: Guest on March-19-2021

Browse Popular Code Answers by Language