php help
#2

$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:
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. 
Reply


Messages In This Thread
php help - by Face9000 - 28.12.2016, 20:25
Re: php help - by BlackBank - 29.12.2016, 13:15
Re: php help - by Vince - 29.12.2016, 14:10

Forum Jump:


Users browsing this thread: 1 Guest(s)