Jump to content

Miqayel

New Members
  • Posts

    8
  • Joined

  • Last visited

Miqayel's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. and this $c = null; $a="*"; $b=7; while($b-->0) { $c.=$a; $d[]=$c; } $e =array_reverse($d); foreach($e as $v) { echo $v."\r\n"; }
  2. I found this but don't know what do next , while($a++<10) { $c=str_pad(base_convert($a, 10, 2), 2, "0", STR_PAD_LEFT); $b=strtr($c, "01", " *"); echo $b."\r\n"; }
  3. You honestly irritate me How much can you talk about self-directed learning?? I just missed the lesson because I was sick!!!
  4. How can i do this ??? for ($i=1; $i < 9 ; $i++) { $x.='*'; so echo $x when $i = 8 afther echo $x when $i =7 ...and so on };
  5. And one more thing: i can't use arrays.
  6. Can i do something like this ? For exsample $x = '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp' $y = $x - '&nbsp' or something that will work with this principle
  7. i'm not waited that you will do my homework instead of me . i done this $x=null; for ($i=0; $i <= 8 ; $i++) { echo $x .'*' .'<br>' ; $x.='*'; } but it doesn't work with others
  8. How to build this whit Php loops * ** *** **** ***** ****** ******* ******** * ** *** **** ***** ****** ******* ******** ******** ******* ****** ***** **** *** ** * ******** ******* ****** ***** **** *** ** *
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.