4 set 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.
Result of php executing
Full code of 4 set prices.php
- //Php code to genarate starting price point ; ready for easy copy paste---></br>
- <?php
- $userInput=1.125;
- $modifiedUserInput=$userInput+.01;
- $twentyPips=20*10*.00001;
- //First for loop starts here
- for ( $i=0; $i<=9; $i++){
- $result=$modifiedUserInput-($twentyPips*$i);
- $countRight=$i+1;
- echo "input double Price$countRight=$result; </br>";
- }//<--end first for loop
- echo "First set ends here ...First set ends here...First set ends here</br>";
- $modifiedUserInput=$modifiedUserInput-.0005;
- //second for loop starts here
- for ( $i=0; $i<=9; $i++){
- $result=$modifiedUserInput-($twentyPips*$i);
- $countRight=$i+1;
- echo "input double Price$countRight=$result; </br>";
- }//<--end second for loop
- echo "Second set ends here...Second set ends here...Second set ends here </br>";
- $modifiedUserInput=$modifiedUserInput-.0005;
- //Third for loop starts here
- for ( $i=0; $i<=9; $i++){
- $result=$modifiedUserInput-($twentyPips*$i);
- $countRight=$i+1;
- echo "input double Price$countRight=$result; </br>";
- }//<--end third for loop
- echo "Third set ends here...Third set ends here...Third set ends here </br>";
- $modifiedUserInput=$modifiedUserInput-.0005;
- //Fourth for loop starts here
- for ( $i=0; $i<=9; $i++){
- $result=$modifiedUserInput-($twentyPips*$i);
- $countRight=$i+1;
- echo "input double Price$countRight=$result; </br>";
- }//<--end Fourth for loop
- echo "Fourth set ends here...Fourth set ends here...Fourth set ends here </br>";
- ?>
File Description
- 4 set prices
- PHP Code
- 11 Sep-2019
- 1.55 Kb
You can Share it:
Latest PHP Pastes