oop concept, php, mysql

Page 30

Objects referenced by identifiers ; ; ;

Objects are no longer somewhat special arrays Objects are no longer copied by default Objects may be copied using clone/__clone() class Object {};

$obj

$ref

$dup

$obj = new Object(); Instance 1

Instance 2

$ref = $obj; $dup = clone $obj;

Marcus Bรถrger

Class Object

Introduction to Object-oriented programming with PHP

30


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.