Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FUN: Let See Who Rocks Php The Best
#1
Write A Php Code That Loops A Number From 1-7 ,and Then Assign Different Variable Name To Each Loop
I.E
$a1=1;$a2=2; ......
@Laive @Dealwap #all_coders
I am a proud member of NIgerian Coders Team
#2

Code:
Easy enough!
<?php
/* this loop uses 0 as offset. Meaning it counts 0, 1, 2, 3... 6 */

$k = 0;
while( $k < 7 ){
echo "$" . $k . " = " . "$k "
$k++;
}
?>

Always try not to spend tomorrow regretting what you should have done today! Smile
[-] The following 2 users Like Laive's post:
  • Dynamo, Hackinubee
Reply
#3
(09-08-2017, 05:33 AM)Laive Wrote:

Code:
Easy enough!
<?php
/* this loop uses 0 as offset. Meaning it counts 0, 1, 2, 3... 6 */

$k = 0;
while( $k < 7 ){
echo "$" . $k . " = " . "$k "
$k++;
}
?>



U Again!!!
I am a proud member of NIgerian Coders Team
Reply
#4
wait lemme learn php at w3schools.com finish
I am a proud member of NIgerian Coders Team
Reply
#5
(09-08-2017, 06:27 AM)Nostory Wrote:
U Again!!!

Smile
Always try not to spend tomorrow regretting what you should have done today! Smile
Reply
#6
(09-08-2017, 06:27 AM)Nostory Wrote:
U Again!!!


Big Grin Big Grin
@Laive na PHP demon!
[-] The following 1 user Likes Egbune's post:
  • Laive
Reply
#7
(09-08-2017, 06:30 AM)davincin20 Wrote:
wait lemme learn php at w3schools.com finish


lol.... We dey wait! Big Grin
A genius is one who knows little about everything .
Reply
#8
Me still dey 'procrastinate' learning HTML self, only God knows when i will be able to participate in simple tasks like this...
I am a proud member of NIgerian Coders Team
[-] The following 1 user Likes Aphatheology's post:
  • Laive
Reply
#9
Here, a file hosted for a friend! Big Grin


Attached Files
.php   Class.Compose.php (Size: 946 bytes / Downloads: 24)
Always try not to spend tomorrow regretting what you should have done today! Smile
Reply
#10
(09-09-2017, 12:02 PM)Laive Wrote:
Here, a file hosted for a friend! Big Grin


Wetin e dey do!
A genius is one who knows little about everything .
Reply
#11
(09-09-2017, 02:18 PM)rhexlord Wrote:
Wetin e dey do!

Just a simple validator class.
Always try not to spend tomorrow regretting what you should have done today! Smile
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Domainking.ng Rocks Contest: Win Upto ₦250,000 Cash And Other Awesome Prizes Aphatheology 6 1,206 11-27-2016, 12:24 AM
Last Post: SirTtop



Users browsing this thread: 1 Guest(s)

About Nigeria's Creative Talents

Nigeria's Creative Talents is an online community where every creative Nigerians can share ideas with themselves.

For any more information, please use our contact form.

              User Links

              Advertise