How I built ‘BoatRampDirectory.com’ using PHP, mySQL, and Google maps
How I took sample code from an article on Google Dev works and used it to build a Google maps enabled boat ramp finder
How I took sample code from an article on Google Dev works and used it to build a Google maps enabled boat ramp finder
The switch statement is similar to a series of IF statements on the same expression. In many occasions, you may want to compare the same variable (or expression) with many different values, and execute a different piece of code depending on which value it equals to. This is what the switch statement is for. [php] […]
This is a small example of the ‘good’ form of variable naming. What’s good about it is the fact when you read the code: echo “This $brand $model is a $year <br>”; it is fairly easy to guess which variable is which. Contrast this with the ‘bad form’ variables, which is much harder to read. […]
This is a small example of the ‘bad’ form of variable naming. What’s bad about it is the fact when you read the code: echo “This $a $b is a $c <br>“; it is all but impossible to guess which variable is which. Contrast this with the ‘good form’ variables, which is much easier to […]