Jump to content

return array


jwk811

Recommended Posts

how can i get the values im trying this

 

this in the function:

 

		return array("currentTrophy"=>$trophy, "currentRows"=>$rows, "nextTrophy"=>$nextTrophy, "rowsNeeded"=>$rowsNeeded); 

 

and this when i call it later

 

<?php
list ($currentTrophy, $currentRows, $nextTrophy, $rowsNeeded) = getTrophy($id, 'Posts', 'account');
?>

 

then each variable there. what am i doing wrong?

 

Link to comment
https://forums.phpfreaks.com/topic/203356-return-array/
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.