Hi Everyone,
How are you all?
Friends i m new on daniweb, and i just want to know that how can i make diamond with stars (*) using "For" Loop in PHP.
My Teacher Gives me an assignment to make like this...
for ($a=1; $a<=5; $a++)
{
for($b=1; $b<=5; $b++)
{
echo "*";
}
echo "<br>";
}
up code is showing me this result
*****
*****
*****
*****
*****
i want like this one below...!
*****
****
***
**
*
Any one here to help me out of this...?
i m waiting for your response...!
Thanks
Best Regards!
MK