# PHP nested forloop – Exercises pyramid program Solution

## PHP nested forloop – Exercises pyramid program Solution

Contents

Welcome on Pakainfo.com – Examples ,The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to PHP nested forloop – Exercises pyramid program Solution

In this post we will show you Best way to implement Print number Pattern Program in PHP, hear for How to PHP exercises, online practice, php for loop with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Practice with solution of exercises on PHP nested for Loop, examples on various some logical mathematical series more type of series, display various expert level string pattern and more from itfiddle.print number pattern expert level in PHP – To print more number pattern in php you need simple nested for loop concept as well as follow same concept same like C programming.

### pyramid program in php using for loop

```
triangle in php using for loop
=1; \$first--)
{
if(\$first%2 != 0)
{
for(\$second=5; \$second>=\$first; \$second--)
{
echo "* ";
}
echo "";
}
}
for(\$first=2; \$first=\$first; \$second--)
{
echo "* ";
}
echo "";
}
}

?>

number pattern programs in php
<?php

for(\$first=1; \$first=1; \$second--)
{
echo "\$second";
}
echo "";
}

?>

or

=1; \$first--)
{
for(\$second=5; \$second>=\$first; \$second--)
{
echo \$second;
}
echo "";
}

?>

number pattern in php
=1; \$first--)
{
for(\$second=1; \$second<=\$first; \$second++)
{
echo \$second;
}
echo "";
}

?>

nested for loop in php example
<?php

for(\$i=0;\$i=1;\$j--)
{
echo "* ";
}
echo "";
}

?>

number pyramid program in php
=1; \$first--)
{
for(\$second=5; \$second>=\$first; \$second--)
{
echo \$second;
}
echo "";
}

?>

alphabet pattern programs in php
<?php

\$alphabet = range('A', 'Z');
for(\$i=0; \$i\$i; \$j--)
{
echo \$alphabet[\$i];
}
echo "";
}

?>

Example