I have this array
object(stdClass)[138]
public 'articles' =>
array (size=39)
0 =>
object(stdClass)[140]
public 'id' => int 56
public 'title' => string 'prueba con servicio json es tt aa' (length=33)
public 'body' => string 'prueba de hoy' (length=13)
public 'created' => string '2018-06-22T19:49:34+00:00' (length=25)
public 'modified' => string '2018-06-22T19:49:34+00:00' (length=25)
1 =>
object(stdClass)[139]
public 'id' => int 55
public 'title' => string 'prueba con servicio json es tt' (length=30)
public 'body' => string 'prueba de hoy' (length=13)
public 'created' => string '2018-06-22T19:49:12+00:00' (length=25)
public 'modified' => string '2018-06-22T19:49:12+00:00' (length=25)
2 =>
object(stdClass)[137]
public 'id' => int 54
public 'title' => string 'prueba jhon bernal json' (length=23)
public 'body' => string 'prueba de hoy' (length=13)
public 'created' => string '2018-06-22T19:46:55+00:00' (length=25)
public 'modified' => string '2018-06-27T19:05:45+00:00' (length=25)
I want to perform an operation to obtain only one object according to its id.
object(stdClass)[137]
public 'id' => int 54
public 'title' => string 'prueba jhon bernal json' (length=23)
public 'body' => string 'prueba de hoy' (length=13)
public 'created' => string '2018-06-22T19:46:55+00:00' (length=25)
public 'modified' => string '2018-06-27T19:05:45+00:00' (length=25