User Tools

Site Tools


user:thakes3:portfolio:php:loopfun4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

user:thakes3:portfolio:php:loopfun4 [2016/03/16 00:12] – created thakes3user:thakes3:portfolio:php:loopfun4 [2016/03/16 00:14] (current) thakes3
Line 2: Line 2:
 ====Synopsis==== ====Synopsis====
  
-This is the very first time you have witnessed PHP code in action+This code works with the random function to variably change the background color of the table rows generated in the for loopIt then displays both the variables within each iteration of the loop. 
 + 
 +The iteration is different in this application as it uses a static array as an index rather then generated numbers from a loop
  
 ====Overview==== ====Overview====
  
 There are a few take aways to this code.  There are a few take aways to this code. 
-  * The php is embedded in an HTML document  +  * PHP is very powerful in being able to generate a static web page
-  * It can be handled in line with HTML +
-  * It can store data and work with it in the document +
- +
-Some things that are less apparent: +
-  * The code is run server side, all the load is happening on the server. +
- +
-====Functions==== +
- +
-Functions being used in this code: +
- +
-**rand** -- a random number generator. Rand can generate a random integer, and you can pass it a high and low value to work of off.+
  
  
user/thakes3/portfolio/php/loopfun4.1458087153.txt.gz · Last modified: 2016/03/16 00:12 by thakes3