122 - 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 122.php

  1.   
  2.   <?php
  3.   $star = '*';
  4.  
  5.      for($i = 0; $i < $star; $i++){
  6.          
  7.         for($j = 1; $j < $star[i]; $j++){
  8.             echo "*\n";
  9.             
  10.             for($k =$j; $k > $star[i]; $k--){
  11.                
  12.                 echo "*";   
  13.             }
  14.         }
  15.      }
  16.  
File Description
  • 122
  • PHP Code
  • 02 Apr-2024
  • 289 Bytes
You can Share it: