Professional Documents
Culture Documents
Creating An Object (Programming PHP)
Creating An Object (Programming PHP)
home |
O'Reilly's CD bookshelfs |
FreeBSD | Linux | Cisco |
Cisco Exam
Akudemy
The class name does not have to be hardcoded into your program. You
can supply the class name through a variable:
Why this ad?
-
$class = 'Person';
$object = new $class;
Interview
// is equivalent to
$object = new Person;
Coaching
Specifying a class that doesn't exist causes a
runtime error.
Looking for a
github.com
6. Objects 6.3. Accessing Properties and
Methods
OPEN
Ads by
Send feedback Why this ad?
AWS Jobs
Hiring talents with 4+ years of experience to
Implementation Specialist
https://docstore.mik.ua/orelly/webprog/php/ch06_02.htm 1/2
9/1/2021 Creating an Object (Programming PHP)
Ads by
Send feedback
Akudemy
Interview
Coaching
Looking for a
JavaScript job?
Joining Top tech
focused
preparations.
github.com
OPEN
Ads by
Send feedback Why this ad?
https://docstore.mik.ua/orelly/webprog/php/ch06_02.htm 2/2