• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

$visitor->get( 'user_id' ) versus $visitor['user_id' ]

LPH

Well-known member
#1
$visitor->get( 'user_id' ) versus $visitor['user_id' ]

I thought these were interchangeable but am trying to figure out what is happening on some sites with accounts not logging in properly.

Are these interchangeable?

Both show int 2 on a var_dump when user_id 2 is logged into the site.