function call result (CMS tutorial)
By this declaration of the function in sentry.php:
function checkLogin($user = '',$pass = '',$group = 10,$goodRedirect = '',$badRedirect = '')
this call in welcome.php does not make sense to me:
The value 2 will be assigned to the first variable ($user) and $group will remain 10. Am I wrong or have I overlooked something ?
I am new to PHP, but if I remember right 2 will be assigned to $group for it is the first variable assigned with an int value.
if !$theSentry->checkLogin('2'); were called instead, then $user would be assigned the value.
Please, someone correct me if I am wrong
Latest Headlines from Datamation