Answer the question
In order to leave comments, you need to log in
How to remove part of an array?
How to remove an array value with a specific key if it is an array of objects?
Thank you in advance.
Answer the question
In order to leave comments, you need to log in
so you have an object, not an array unset($user->response[0]->hash)
<?php
$a[] = new stdClass();
echo count($a);
unset($a[0]);
echo count($a);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question