Posts Tagged ‘Random Image Generator’
PHP Random Image Generator: Arrays and numbers oh my!
Written by Bean on September 13, 2008 – 5:21 amIn the second week of the PHP 101 for Web Developers course, we introduce arrays through a Random Image Generator. One of things that confuse students most about arrays is how they count. You are probably really used to starting counting with the number 1. When working with arrays, you have to learn how to count from 0!
Arrays store information in a very precise order. At home, you might keep your household bills in a file box organized by month. If you want to know how much your electric bill was last March, you would look in your folder labeled March, the third folder. That assumes you store your bills by month and by year. What about if you stored your monthly bill folders in alphabetical order. It wouldn’t matter as long as you know where to look.
Arrays aren’t as lax about organization as we might be. PHP arrays always Read more »
Tags: Arrays, Images, PHP, Random Image Generator
Posted in PHP | 1 Comment »
