1.
$arr = array();
$arr[] = '';
2.
$arr = array();
array_push($arr,'');
I just made a 100,000 cycle insertion, but the first one was faster! (Loop insert numbers, 100,000 times, the first type is about 0.04, the second type is about 0.08 seconds)
$arr = array();
$arr[] = '';
2.
$arr = array();
array_push($arr,'');
I just made a 100,000 cycle insertion, but the first one was faster! (Loop insert numbers, 100,000 times, the first type is about 0.04, the second type is about 0.08 seconds)