Jump to content

[SOLVED] Array Problem


tcollie

Recommended Posts

Okay, I've written a function that returns an array (at least I think I've got the correct format for producing my array.)  This function is called from a separate page within the site.  I need to display my array variables on the page the function is called on to finish processing my script.  Here is what I have so far:

[code]function loc_bonus($id)
{
$loc_high = 5;
$loc_med = 3;
$loc_low = 1;
//Create Array
$bonus = array('loc_high'=>$loc_high,'loc_med'=>$loc_med,'loc_low'=>$loc_low) ;
return $bonus;
}[/code]

Now I want to be able to display $loc_low after calling my function on a separate page.

Thanks in advance.
Link to comment
https://forums.phpfreaks.com/topic/33170-solved-array-problem/
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.