title: How do i execute multiple lines of PHP code in blade?
body: <p>I have the following 2 lines of code in my blade template:</p>
  
  <pre><code>&lt;p&gt;
      &lt;?php preg_match('/&lt;p&gt;(.*?)&lt;\/p&gt;/i' , $recent-&gt;blog_content , $matches) ?&gt;
      {!! str_limit($matches[0] , 50 , '...') !!}
  &lt;/p&gt;
  </code></pre>
  
  <p>Now how do i write the first like of code I.E. the below line of code:</p>
  
  <pre><code>&lt;?php preg_match('/&lt;p&gt;(.*?)&lt;\/p&gt;/i' , $recent-&gt;blog_content , $matches) ?&gt;
  </code></pre>
  
  <p>In blade as both the below two syntaxs , outputs the result to the frontEnd instead of execute my code:</p>
  
  <pre><code>{{ preg_match('/&lt;p&gt;(.*?)&lt;\/p&gt;/i' , $recent-&gt;blog_content , $matches) }}
  
  
  {!! preg_match('/&lt;p&gt;(.*?)&lt;\/p&gt;/i' , $recent-&gt;blog_content , $matches) !!}
  </code></pre>
  
  <p>Basically how do i execute multiple lines of PHP code in blade ?</p>