You can display the entries in an array with the following code:
1 foreach ($myarray as $name) echo “$name.<br>”;
// foreach is a useful tool for dealing with arrays
// echo is probably the most used built in function in PHP
Click here for more information.
2 if ($condition) then $x=3; // this is the standard if statement
Click here for more information.
3 $var=$condition ? true : false; // this is a short-hand if-then-else construct.
Origins 2008 – The Fork Begins MySQL AB had been acquired by Sun Microsystems in…
Variables are essential to writing code in PHP. Variables always start with the dollar sign…
WampServer, a Windows web development environment. This only runs on Windows computers but it is…
XAMPP a local environment for web development. Setting up XAMPP (which stands for X (Cross-Platform),…
This will get you started writing in PHP. Just go to w3schools.com and click on…
MySQL was created in 1994 by Swedish developers David Axmark and Allan Larsson, along with…