PHP for Beginners: Conditionals
Conditional statements are used to preform different actions based on different conditions. In PHP, there are four conditional statements: if – execute code only if a specefied condition is true, if…else – execute code if a condition is true and another code if the condition is false, if…elseif…else – select one of several blocks of code to be executed, and switch – select one of many blocks of code to be executed.
PHP for Beginners: Arrays
Arrays are used to store multiple values in a single variable. Each value in the array has its own index so that it can be easily accessed. In PHP, there are three kinds of arrays: Numeric Array (an array with a numeric index), Associative Array (an array where each ID key is associated with a value), and Multidimensional Array (an array that contains one or more arrays).
PHP for Beginners: Basics, Syntax and Variables
PHP is powerful computer language for making dynamic and interactive Web pages. It is a server-side scripting language. This means that PHP code is executed on web server, and the HTML result is returned to the browser. PHP files should have a file extension of “.php”, “.phpml”, “.php5″, or “.phps” and can contain text, HTML tags and scripts. If the file has a .html extension, the PHP code may not be executed.



