background preloader

PHP

Facebook Twitter

PHP Tutorials Examples Object Oriented Programming with PHP. By Kevin Waterson Draft Only Contents What is OOP OOP was first invented for the purpose of physical modelling in the Simula-67. What is an Object Simply put, an oject is a bunch of variables and functions all lumped into a single entity. What is a Class A class is the blueprint for your object. <? /*** the color of the vehicle ***/ public $color ; /*** the number of doors ***/ public $num_doors ; /*** the price of the vehicle ***/ public $price ; /*** the shape of the vehicle ***/ public $shape ; /*** the brand of vehicle ***/ public $brand ; /*** the constructor ***/ public function __construct (){ echo 'About this Vehicle. /*** define some public methods ***/ /*** a method to show the vehicle price ***/ public function showPrice (){ echo 'This vehicle costs ' . /*** a method to show the number of doors ***/ public function numDoors (){ echo 'This vehicle has ' . /*** method to drive the vehicle ***/ public function drive (){ echo 'VRRROOOOOOM!!!

' } /*** end of class ***/ ? <? <? <? Commenting Code <? PHP Tutorials Examples PHPRO Tutorials. Insert-Multiple Rows Into MySQL The Right Way With PHP Quite often when coding with PHP, there is a need to insert many items into a a database. The data may come from a feed, an array in yousr code, a form submitting multiple values or many other sources. This tutorial looks at optimizing this process by using a single query to insert multiple records Read More Introduction To Mecurial This is a light weight introduction to some basic concepts in Mecurial versioning. Simple Mysql PHP Menu There are possibly as many menu systems available for PHP and MySQL as there are PHP programmers. Dynamically Create Menu With PHP DOM Programatically createing menus using php is a task many programmers will need to do over and over again in developing applications and web sites. Introduction to PHP and MySQL This tutorial is aimed at those new to PHP and MySQL.

Introduction To SimpleXML With PHP XML creation and manipulation can be quite complex and so, PHP has provided several methods of handling XML. Sharag’s Tech Interview HELP. REST API Resources. 16 Very Useful Smarty Scripting Tips and Techniques to Make Templates Smarter. Java.