I am trying to delete some elements of an array resulting from a fetch from a function in a class:
public function isChecked($db, $table, $id, $row_id)
{
$answer = $db->query("SELECT * FROM $table WHERE $row_id = $id")->fetch();
var_dump($answer);
}
I get the following result:
object(stdClass)#2 (5) { ["act_prim"]=> string(2) "12" ["act_id"]=>string(1) "1" ["a"]=> NULL ["b"]=> string(1) "1" ["c"]=> string(1) "1" }
I would like to remove the 2 first elements ("act_prim" and "act_id") from the array. But so far I dident succeed with any method.
Thanks for your help.