I'd like a class object that populates itself when I supply a parameter.
EG pseudocode:
---
class User
agent = new User(1001)
---
How do I make the object constructor so that if the parameter is supplied the object populates with the requested values or if not, just creates a new object?
http://php.net/manual/en/language.oop5.php