Jump to content

multiple function array


unemployment

Recommended Posts

How can I make a multiple function array?

 

i'm setting up reminders for users and fetch_reminders does what it says... fetches all the reminder functions. Well that's what I want it to do and the other functions are just checks.

 

How can I make $reminder and array of the functions that I want checked? Is this the best way to do it?

 

$reminder =array()
function fetch_reminders($reminder === true)
{
return true
}

function capital_requested_reminder($requested, $accounttype)
{
$requested = (int)$requested;
$accounttype = (int)$accounttype;

if (empty($requested) && ($accounttype === 1))
{
	return true;
}
}

function associates_reminder($associates)
{
$associates = (int)$associates;

if ($associates >= 1)
{
	return true;
}
}

Link to comment
https://forums.phpfreaks.com/topic/234450-multiple-function-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.