PHP Program to print Alphabet Pattern P

 PHP Program to print Alphabet Pattern P

PHP Program to print Alphabet Pattern P


Example :-

<?php
echo "<pre>";
for($row=0;$row<11;$row++){
    for($col=0;$col<=11;$col++)
    {
        if($col ==1 OR (($row==0 or $row==5)
AND $col>1
        AND $col<9)OR($col==9 AND $row!=0 AND
$row<5)
        OR($col==$row-2 AND $row >10))
        {
            echo"*";
        }
        else {
            echo "&nbsp;";
        }
        }
        echo "<br>";
    }
    echo "</pre>";
?>

PHP Program to print Alphabet Pattern P

Output :-

php program to print Alphabet Pattern P


Related  Post:-

audio tag in html

html paragraph tag

css background propertie

Comments

Popular posts from this blog

HTML Tag

CSS Text Color Explained with Syntax and HTML Examples

html script tag attributes

CSS text-emphasis-color Property

HTML Input Type Submit Syntax and Example

CSS Padding Property Explained

How to Display T Pattern in C with Star (*) – Step-by-Step