Hi All
this is fiza
new 2 this forum
nd just started my developmnt career
bt stil having lots of quries
hop u guize vil help me
im learing php wid tuorials aswell
bt didnt get the logics
like in nested loop i hv example
i want print like this..nd i used following statmnt
* * * * *
* * * *
* * *
**
*
<?php
for($x=0; $x<=10; $x++);
for($y=0; $y<=10; $y++);
echo "*"
?>
so kindly help me abt this statment..
nd also tel me how i can clear my logics regarding PHP
tnx
need help abt PHP on very basic steps
Moderator: General Moderators
-
Mark Baker
- Forum Regular
- Posts: 710
- Joined: Thu Oct 30, 2008 6:24 pm
Re: need help abt PHP on very basic steps
Code: Select all
for($x=5; $x>0; $x--) {
for($y=1; $y<=$x; $y++) {
echo '*';
}
echo '<br />';
}
Code: Select all
for($x=5; $x>0; $x--) {
echo str_repeat('*',$x).'<br />';
}