$cart = array(); $cart[] = 11; $cart[] = 15; $cart = array(); array_push($cart, 13); array_push($cart, 14); 인텔리제이에서는 하나의 element일때는 array_push 방법을 권장하지 않는다. How to add elements to an empty array in PHP? If I define an array in PHP such as (I don't define its size): $cart = array(); Do I simply add elements to it using the following? $cart[] = 13; $cart[] = "foo"; $cart[] = obj; Don't arrays in....