: This article mainly introduces the PHP function library (other). If you are interested in the PHP Tutorial, refer to it.
Session_cache_expire () returnsSession. cache_expire.
When the request starts, the cache expiration time is reset to 180 and saved in the session. cache_expire configuration item. Therefore, for each request, you must call session_cache_expire () to set the cache expiration time before calling the session_start () function. Parameters:
PHP_SESSION_DISABLED
If sessions are disabled.
PHP_SESSION_NONE
If sessions are enabled, but none exists.
PHP_SESSION_ACTIVE
If sessions are enabled, and one exists.
Session_unregister-Unregister a global variable from the current session
Call_user_method_array-call a user method and pass the parameter array (obsolete)
Call_user_method-call the user method for a specific object (obsolete)
Class_alias-create an alias for a class
myclassmyfunc1myfunc2
// Before PHP 4.2.0var2 : xyzvar3 : 100// As of PHP 4.2.0var1 :var2 : xyzvar3 : 100
string(3) "foo"string(3) "bar"
Array( [0] => Traversable [1] => IteratorAggregate [2] => Iterator [3] => ArrayAccess [4] => reflector [5] => RecursiveIterator [6] => SeekableIterator)
$ Link = mysql_connect ('localhost', 'MySQL _ user', 'MySQL _ password ');
If (! $ Link ){
Die ('could not connect: '. mysql_error ());
}
Mysql_select_db ('mydb ');
/* This example returns the exact number of deleted records */
Mysql_query ('delete FROM mytable WHERE id
Connected successfully
The above is the content of the PHP function library (other). For more information, see PHP Chinese Web (www.php1.cn )!