Objects versus Arrays

filmsskachat

New Member
I am working on a site at the moment, and there is a concentrated focus on efficiency and speed in loading, processing and such like.I'm using the mysqli extension to get my database bits and bobs, but I'm wondering what's the best / most efficient way of outputting my dataset?At the moment I'm using $mysqli->fetch_assoc() and a foreach(). Having read http://www.phpbench.com I know that counting my data first makes a difference. (I'm going to optimise after build)My question is, which is quicker for getting a resultset into a php data thing. Creating an object? A numerical array? An associative array? My thoughts are an object, but I'm unsure.Just curious, as I'm not familiar with the PHP internals :)
 
Back
Top