I’ve seen this used a lot, especially with SimpleXML.
Is this:
$row->unixtime
simply the same as doing this???
$row[unixtime]
What is this called, why/how should it be used?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Object Oriented Programming with PHP
$row is an object. unixtime is a property of that object.
$row is an (associate) array. unixtime is a key in that array.
Asking ‘What Objects are’ is a bit vague.
Getting started with OOP is not a trivial task. It takes a good while to learn the syntax and nuances, some more time to understand the advantages, and years(arguably) to actually use it effectively.