26416Introduction to PHPhttp://www.codedemons.net/tutorials/PHP/Introduction-To-PHPPHP (Hypertext Pre-Processor) is a scripting language. One common mistake made by beginners to programming is to confuse PHP and HTML. HTML is the code which a browser interprets, while PHP is the code which creates HTML. PHP can create HTML. If you do not know basic HTML, then do not read any further.
To identify PHP code you must give the file a .php extension. This tells the web server to send these files to the PHP engine, so that they can be interpreted/compiled. Beyond giving them a .php extension you must also identify PHP code by surrounding it in the following tags:PHP > Tips and Tutorials > Introduction to PHPOct 15, 2006
Object orientated programming (OOP) is a commonly used term when discussing modern programming techniques. One of the things that makes humans stand out is the ability to categorise - we put objects into categories of similar type of function. For example, we have the category vechicle. Within this category, you have the different types of vehicle - car, bug, train, van. In the same bag, a llama is a type of animal. This analogy applies to programming - we create functions to do specific tasks and then group similar functions into classes. No only does this organise everything, but also allows a common access point for these similar functions.
In the most basic sense, a class is a group of related functions. Think of them as parts of a factory: even though they do different things, they usually work together to create a common result.
Arrays can most easily be described as an ordered list of elements. You can access the individual elements by referring to their index position within the array. The position is either specified numerically or by name. An array with a numeric index is commonly called an indexed array while one that has named positions is called an associative array. In PHP, all arrays are associative, but you can still use a numeric index to access them
PHP (Hypertext Pre-Processor) is a scripting language. One common mistake made by beginners to programming is to confuse PHP and HTML. HTML is the code which a browser interprets, while PHP is the code which creates HTML. PHP can create HTML. If you do not know basic HTML, then do not read any further.
To identify PHP code you must give the file a .php extension. This tells the web server to send these files to the PHP engine, so that they can be interpreted/compiled. Beyond giving them a .php extension you must also identify PHP code by surrounding it in the following tags:
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.