So I am using this code to push new user IDs into an array but I get
Warning: array_push() expects at least 2 parameters, one given
$post_likes = array(
"Some key" => array(
'date' => date("d/m/Y"),
'IP' => get_client_ip())
);
$new_likes = array(
'date' => date("d/m/Y"),
'IP' => get_client_ip());
array_push($post_likes[$current_user->ID] = $new_likes);
The code works. It pushes new key with array value into the previous array. But still I get that warning. What am I missing?