fork(1) download
  1. <?php
  2.  
  3.  
  4. function getBalance($deposit,$percent,$comission,$paidAmount){
  5.  
  6. for ($i=0;$i<100;$i++){
  7. if ($credit>0){
  8. $credit = ($deposit*$percent)+$comission-$paidAmount;
  9. $overallPaid=$paidAmount+ $overallPaid;
  10. } else {
  11. $overallPaid= $overallPaid+ ($paidAmount+$credit);
  12. return $overallPaid;
  13. break;
  14. }
  15. }
  16. }
  17.  
  18. $abc = function getBalance (39999,1.1,1000,5000);
Runtime error #stdin #stdout #stderr 0s 82560KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected 'getBalance' (T_STRING), expecting '(' in /home/ERmudT/prog.php on line 19