40 prices - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of 40 prices.php

  1.  
  2.  
  3.  
  4. //Php code to genarate starting price point ; ready for easy copy paste---></br>
  5.  
  6.  
  7.  
  8. <?php
  9.  
  10.  
  11. $userInput=1.125;
  12. $modifiedUserInput=$userInput+.01;
  13.  
  14. $FivePips=5*10*.00001;
  15.  
  16. //First for loop starts here
  17.  
  18. for ( $i=0; $i<=39; $i++){
  19.     
  20.     $result=$modifiedUserInput-($FivePips*$i);
  21.     $countRight=$i+1;
  22.     
  23.     
  24.     echo "input double Price$countRight=$result; </br>";
  25.     
  26.     
  27. }//<--end first for loop
  28.  
  29.  
  30.  
  31.  
  32.  
  33. ?>
  34.  
  35.  
  36.  
File Description
  • 40 prices
  • PHP Code
  • 11 Sep-2019
  • 416 Bytes
You can Share it: