-
session_cache_expire — 返回当前缓存的到期时间
session_cache_expire() 返回 session.cache_expire 的设定值。
请求开始的时候,缓存到期时间会被重置为 180,并且保存在 session.cache_expire 配置项中。 因此,针对每个请求,需要在 session_start() 函数调用之前 调用 session_cache_expire() 来设置缓存到期时间。参数:
-
session_module_name — 获取/设置会话模块名称
-
session_regenerate_id — 使用新生成的会话 ID 更新现有会话 ID
-
session_save_path — 读取/设置当前会话的保存路径
-
session_set_save_handler — 设置用户自定义会话存储函数
-
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 — U来4源gaodaimacom搞#代%码*网
搞代gaodaima码
nregister a global variable from the current session
-
session_write_close — Write session data and end session
-
call_user_method_array — 调用一个用户方法,同时传递参数数组(已废弃)
-
call_user_method — 对特定对象调用用户方法(已废弃)
-
class_alias — 为一个类创建别名
-
class_exists — 检查类是否已定义
myclassmyfunc1myfunc2
-
get_class_vars — 返回由类的默认属性组成的数组
// Before PHP 4.2.0var2 : xyzvar3 : 100// As of PHP 4.2.0var1 :var2 : xyzvar3 : 100
string(3) "foo"string(3) "bar"
-
get_declared_classes — 返回由已定义类的名字所组成的数组
Array( [0] => Traversable [1] => IteratorAggregate [2] => Iterator [3] => ArrayAccess [4] => reflector [5] => RecursiveIterator [6] => SeekableIterator)
-
get_declared_traits — 返回所有已定义的 traits 的数组
-
is_a — 如果对象属于该类或该类是此对象的父类则返回 TRUE
-
property_exists — 检查对象或类是否具有该属性
<spanFira Sans', 'Source Sans Pro', Helvetica, Arial, sans-serif; font-size: large;"><?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db('mydb');
/* 本例返回被删除记录的准确数目 */
mysql_query('DELETE FROM mytable WHERE id
Connected successfully
-
mysql_connect — 打开一个到 MySQL 服务器的连接
以上就是PHP函数库(other)的内容,更多相关内容请关注搞代码(www.gaodaima.com)!