Hey everybody,
I will speak a little bit about this php tutorials for dummies blog.
I decided to start writing to try and help you folks searching for php programming help. My desire to open a blog was starting since anyone was blogging and me not. Why? Because I just didn’t know which to be the theme of the blog.
In one day, this idea was coming to me : how about trying to help people with a php tutorials for dummies series, with simple examples of the most usefull scripts and php functions.
Now its getting bigger every day and I am getting encouraging comments which makes me to keep up the good work. Also the unique, fresh and mainaintance of this php tutorials for dummies blog makes it cool. No more need to read hundreds of pages to learn a simple function, everything followed by an example can be into a short article.
Thanks and hear from you!
Hi – How would you write4 a loop to do this -You have an array of 12 items. A user inputs a number between 1 and 12 on an html form. The php file would the loop thru the array and echo the number of items in the array corresponding to the number input in the html form?
if the array items are like number => item
ie.
$arrayvar = array(0 => “item 0″, 1 => “item 1″) I would simply do a print like this
print $arrayvar[0]; // print $arrayvar[$_POST['input']]