Possible Duplicate:
Php array_push() vs myArray[]
Hello folks.
I know some ways to add an element to an array in PHP.
$anArray[] = $newElement;
<-I like this one
array_push()
<-I've seen many people use it.
There are others, I'm sure.
I'd like to know which of these is more efficient or if there's another way of doing it more efficiently.
NOTE: I just want to add an element, could be at the end of the array. I mean that I won't specify what position the new element is to be added at.