29.12.2016, 13:15
$ipvoid and $userid are both string types, how does the function 'new_session' looks filled?
Also, you could cast them to a int if you want, like this for example:
Also, you could cast them to a int if you want, like this for example:
PHP код:
// Normal way
$user_id = '20'; // user_id is now a string.
$user_id = 20; // user_id is now a int.
// Casting
$user_id = (int) '20'; // user_id is now a int.