PHP Classes - Week 2 : Arrays  

Posted by John Clarke, Business Partner, jc-Interactive

This week we are going into arrays :) So, put on your thinking caps, and lets get this started First off, get the code here:

 "; 	 	// This is another method to print it out 	foreach( $my_array as $element_in_array ) 	{ 		echo $element_in_array . " "; 	} ?> 
Both these loops, for loop and the foreach loop, will print out the line "This is so awesome". Have a go at it, see what you can come up with, and in the next tut we will be covering loops :)

Later! John Clarke :)

This entry was posted on Friday, March 5, 2010 at 10:16 AM . You can follow any responses to this entry through the comments feed .

0 comments

Post a Comment