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

LPH

Well-known member
$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.
 
Top