is there is any default function in string?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jas1n2007
Forum Newbie
Posts: 2
Joined: Sun Nov 09, 2008 8:30 pm

is there is any default function in string?

Post by jas1n2007 »

$gate_extra = array('initialize' => 'user_login_initialize',
'verify' => 'user_login_verify',
'destroy' => 'user_login_destroy',
'data' => array('user_id' => $user_id));

assert(function_exists($gate_extra['initialize']));
if (!$gate_extra['initialize']($gate_extra['data'])) {
// Fail to initialize!
echo($gate_extra['initialize']);
return false;
}


i wonder in what condition will the < if (!$gate_extra['initialize']($gate_extra['data'])) > have value of true ??

can any body help me?
i've been trying to find the answer for 3 days... :banghead:

thanks & regards,
- Jasin Tanuwijaya
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: is there is any default function in string?

Post by requinix »

Depends what user_login_initialize does.
Post Reply