I have an array of objects when is being pulled in from a database and would like to return each object where the 'status' field is equal to 'No Answer':
array (size=21)
0 =>
object(Customer)[4]
public 'id' => string '12345' (length=6)
public 'date' => string '2014-02-16' (length=10)
public 'first_name' => string 'Jane' (length=5)
public 'last_name' => string 'Doe' (length=4)
public 'email' => string 'test@test.com' (length=21)
public 'phone' => string '01782111444' (length=11)
public 'status' => string 'No Answer' (length=14)
1 =>
object(Customer)[5]
public 'id' => string '12346' (length=6)
public 'date' => string '2014-02-19' (length=10)
public 'first_name' => string 'John' (length=4)
public 'last_name' => string 'Smith' (length=9)
public 'email' => string 'no@no.com' (length=24)
public 'phone' => string '01606555666' (length=11)
public 'status' => string 'Left Message' (length=12)
It seems like I would need to use array_filter() but cant seem to get it to work