I've transitioned my coding step by step into OOP, which feels great. What I haven't got a hold of yet, is when It's time to use an object and when to use the conventional arrays.
Let's say that I would have the following code. Here we create an array containing Persons - receivers of emails. It's really cute, but it feels kind of smelly to jump back and forwards between arrays and objects.
Are my concerns legitimate or is this good practice?
public function receiver($email, $name = FALSE) {
$person = new Person();
$person->email = $email;
$person->name = $name;
$this->receiver[] = $person;
}