bcamp1973 Posted October 31, 2006 Share Posted October 31, 2006 Can someone tell me the difference between using array_push($array,$x) and $array[]=$x ? More importantly are there positives/negatives to one or the other? Quote Link to comment Share on other sites More sharing options...
btherl Posted October 31, 2006 Share Posted October 31, 2006 When using a profiler, array_push() counts as a function call, but array[] is only syntax. I haven't noticed any performance difference between them. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.