Jump to content

Array returns in functions


EchoFool

Recommended Posts

Hey,

 

If i return mysql_fetch_assoc($Query);

 

In my function and the call it on my script like this:

 

$array = function();

 

How would i use the array because i tried $array[0] to echo the first field selected from the query but i get an offset error. So im assuming mysql_fetch_assoc returns an array in a different type ?

Link to comment
https://forums.phpfreaks.com/topic/196177-array-returns-in-functions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.