How can i register variables into session

Global variables in PHP can be registered using the session_register() function. It accepts different number of arguments, any of which can be either a string holding the name of a variable or an array consisting of variable names or other arrays

Example:
Session_register("smple");

$_session can also be used for registering variables.

Example: $_SESSION['count'] = 0;