how to make php pyramid. Please tell me which code i use.......

by 4 replies
5
*
* * *
* * * * *
* * * * * * *
* * * * * * * * *
#programming #code #make #php #pyramid
  • HTML should be sufficient.

    • [ 1 ] Thanks
    • [1] reply
  • Banned
    [DELETED]
  • Banned
    [DELETED]
  • Banned
    [DELETED]
  • Code:
    for(=9;>=1;--){
     
        for (=0;  <= 9-; ++)  {
            echo "&nbsp;&nbsp;";
        }
         
        for(=;>=1;--){
            echo "&nbsp;".."&nbsp;";
        }
         
        echo "<br>";
     
    }
    2nd:
    Code:
    for(=0;<=9;++){
     
        for (=10-;  > 0; --)  {
     
            echo "&nbsp;&nbsp;";
        }
        for(=1;<=;++){
     
            echo "&nbsp;".."&nbsp;";
        }
     
        echo "<br>";
     
    }