Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

while loop in laravel


      {{-- while loop --}}
      @php 
        $p = 1;
      @endphp
      @while($p<10)
      <h4>{{ $p }}</h4>
      @php $p++; @endphp
      @endwhile
 
PREVIOUS NEXT
Tagged: #loop #laravel
ADD COMMENT
Topic
Name
9+8 =