Jump to content

Lumana

New Members
  • Posts

    5
  • Joined

  • Last visited

Lumana's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you so much sir... your code is working well and easily understandable also.
  2. Thank you so much sir... your code is working well and easily understandable also.
  3. Thank you so much sir. your last line open my brain to think , though other people already gave me solution but you really teach me very nicely. My whole life study in business studies, thats the reason i am very much weak in programming. Anyway thank you so much sir.
  4. I tried this and come out like this, I think my problem is solved though its not very precise way, It can be write in more better way. <!DOCTYPE html> <html> <body> <?php for ($x = 0; $x <= 42; $x++) { if($x == "5" || $x == "10" || $x == "15" || $x == "20" || $x == "25" || $x == "30" || $x == "35" || $x == "40" || $x == "45") { echo "<b>I love you</b> <br>"; } echo "The number is: $x <br>"; } ?> </body> </html>
  5. suppose i want to loop number like this (1.2.3.4.5.....100), but after every 5 number i want to echo another word and after that continue to the first loop: example: 1.2.3.4.5.W.6.7.8.9.10.W.11.12.13.14.15W.... can anyone help me about this. Thanks in advance
×
×
  • 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.