I am getting this error in codeigniter 3. I had tried most of the things but none of them worked.
JavaScript
x
function money_format($num = 0, $pro = 2)
{
%number =round((float)$num, $pro);
if($pro == 2)
$num = money_format("%!^2n",(float)$num);
else
$num = money_format("%=*!^.".$pro."n",(float)$num);
return $num;
)}
Advertisement
Answer
- Increase
memory_limit
in yourphp.ini
file. If this is not resolving the issues:
2) Add this line ini_set('memory_limit', '-1');
before the line where you get the error