I am getting id like $id=2
in a variable
like: $count_id=$request->get('count_id');
and from a function i am getting a array
like given below:
like:$results=get_experiance();
[0] => stdClass Object
(
[id] => 1
[A] => a
[B] => b
[C] => c
[D] => d
)
[1] => stdClass Object
(
[id] => 2
[A] => w
[B] => s
[C] => d
[D] => a
)
[2] => stdClass Object
(
[id] => 3
[A] => r
[B] => e
[C] => f
[D] => v
)
My question is that when i am getting the value in $id=2
result should be like that :
[0] => stdClass Object
(
[id] => 1
[A] => a
[B] => b
[C] => c
[D] => d
)
[1] => stdClass Object
(
[id] => 3
[A] => r
[B] => e
[C] => f
[D] => v
)
Means i want to delete the record from the getting array based on id. How can i achieve this can anyone have simplest way ??