title: Fatal Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) on line 3
body: <p>I am getting this error in codeigniter 3.
  I had tried most of the things but none of them worked.</p>
  <pre><code>    function money_format($num = 0, $pro = 2)
      {
          %number =round((float)$num, $pro);
  
           if($pro == 2)
              $num = money_format(&quot;%!^2n&quot;,(float)$num);
           else
              $num = money_format(&quot;%=*!^.&quot;.$pro.&quot;n&quot;,(float)$num);
           return $num;
       )}
  </code></pre>