Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

While loop Laravel

//In view

@php 
	$p = 1;
@endphp

@while($p<10)
	<h4>{{ $p }}</h4>
@php $p++; @endphp

@endwhile
 
PREVIOUS NEXT
Tagged: #While #loop #Laravel
ADD COMMENT
Topic
Name
1+3 =