title: Shortcut for echo “<pre>”;print_r($myarray) inside foreach laravel
body: <p>Is there a shortcut for </p>
  
  <pre><code>echo "&lt;pre&gt;";
     print_r($Array); 
  </code></pre>
  
  <p>inside a foreach loop using laravel?I did the following</p>
  
  <pre><code>@foreach ($getallDetials as $user)
    {{ print_r($user) }}
  @endforeach
  </code></pre>
  
  <p>I get Output like</p>
  
  <pre><code>[sname] =&gt; sdsds [course] =&gt; 10 [no] =&gt; sdsd [number] =&gt; 1 ) 1 stdClass Object ( [s_no] =&gt; 2 [sname] =&gt; asasa [course] =&gt; asas [no] =&gt; asasas [number] =&gt; 1 ) 1 stdClass Object ( [s_no] =&gt; 3 [sname] =&gt; asasa [course] =&gt; asas [no] =&gt; sasa [number] =&gt; 2 )
  </code></pre>
  
  <p>But I don't know how can i echo '<code>&lt;pre&gt;</code>' inside a foreach loop So i will get array as structured format.Please help me</p>