PHP: Object Oriented Programming -> Operator
Posted
by
oman9589
on Stack Overflow
See other posts from Stack Overflow
or by oman9589
Published on 2012-09-16T15:32:32Z
Indexed on
2012/09/16
15:37 UTC
Read the original article
Hit count: 205
So I've been reading through the book PHP Solutions, Dynamic Web Design Made Easy by David Powers. I read through the short section on Object Oriented PHP, and I am having a hard time grasping the idea of the -> operator. Can anyone try to give me a solid explanation on the -> operator in OOP PHP?
Example:
$westcost = new DateTimeZone('America/Los_Angeles');
$now->setTimezone($westcoast);
Also,a more general example:
$someObject->propertyName
Thanks
© Stack Overflow or respective owner