About Me

Subscribe now!Feeds RSS

Messages

Jan 11, 2009

A simple nested for statement in PHP

Recently, I read some blogsites and forums about conditional statements in PHP. And i found out that there are some similarities when you are making some codes in C or C++ and in PHP. Now, if you have a strong foundation in C or C++ then it is easy for you to study the PHP scriptings.


Below are some of my sample coding (or scripting) in PHP ab out nested for condition statement.

save it as index.htm | save it as validation.php

Sample Output

This is a sample output. When you copy the index.htm, may i request to please save it in one folder (for formality).








And this is the sample output. Better yet, to do this, you must read or review your subject in Data Structure and Algorithm about how to do this one.

No comments:

Post a Comment