You are here
Home > Posts tagged "PHP"

PHP Cheatsheet

PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft's ASP. from w3schools Example of several ways of Loop Foreach Loop: foreach ($array as $value) { code to be executed; } example: foreach($ArrayOfObject as $object) { } For Loop: for (initialization;