Soldato
Lets say I have a simple function that queries a database for 4 values. If i want to return these four values for use on a page is the most efficient way to return these values as an array and use the list function? E.g
Ta
PHP:
function ocuk(1) {
//do database stuff
return array($1, $2, $3, $4);
}
//then on the actual page where IO need these vars
list($1, $2, $3, $4) = ocuk(1);
//etc.
Last edited: