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?
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?
Object Oriented Programming with PHP
$row->unixtime
$row is an object. unixtime is a property of that object.
$row[unixtime] // I hope you meant $row['unixtime'];
$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.