If I define an array in PHP such as (I don\'t define its size):
$cart = array();
Do I simply add el
Based on my experience, solution which is fine(the best) when keys are not important:
$cart = []; $cart[] = 13; $cart[] = "foo"; $cart[] = obj;