-
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:
!$theSentry->checkLogin(2)
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Latest Headlines from Datamation
|
Bookmarks