如何在刀片模板中放置空格

时间:2018-04-06 12:56:14

标签: php laravel codeigniter blade

我正在使用https://github.com/cntaoyu/CI-Blade框架,我的代码是:(工作正常并打印出来)

    @foreach($tbl_data as $d) 
        @foreach($d as $c) 
            {{$c}}  //I want space after this, new line in fact
        @endforeach 
    @endforeach 

1 个答案:

答案 0 :(得分:1)

 @foreach($tbl_data as $d) 
    @foreach($d as $c) 
        {{$c}}  <br> //if it is blade
    @endforeach 
@endforeach