Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel blade get array count in Blade

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #blade #array #count #Blade
ADD COMMENT
Topic
Name
7+1 =