Jump to content

Wrong use of function?


unemployment

Recommended Posts

Have I made this function correctly?

 

$info = fetch_user_info_by_id(); is an array.  Can I just pull check the values with if (($info['totalrequested'] === 0) && ($info['accounttype'] === 1)) or do I need to do something else?

 

function capital_requested_reminder()
{
$info = fetch_user_info_by_id();

if (($info['totalrequested'] === 0) && ($info['accounttype'] === 1))
{
	return true;
}
}

Link to comment
https://forums.phpfreaks.com/topic/234481-wrong-use-of-function/
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.