📜  数组计数项目 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:44.901000             🧑  作者: Mango

代码示例2
// using count() we can get proper length of the array
$names = array("Ankur","Raj","Ram","Suresh");
// pass array into count() as parameter it will return array length
echo count($names);

// output : 4