📜  laravel 刀片获取 Blade 中的数组计数 - PHP 代码示例

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

代码示例1
You can use the php count function to count the length of an array.

http://php.net/manual/en/function.count.php
EXAMPLE:

@if (count($array) > 0)
    {{-- expr --}}
@endif