07 2019 档案

php try catch用法
摘要:php try catch用法? 1.try catch 捕捉不到fatal error致命错误2.只有抛出异常才能被截获,如果异常抛出了却没有被捕捉到,就会产生一个fatal error3.父类可以捕获子类抛出的异常 4.try中的代码一旦抛出异常,代码将停止运行,直接执行catch中的代码5.多 阅读全文

posted @ 2019-07-25 11:44 枫枯 阅读(15533) 评论(0) 推荐(0)

include,include_once,require,require_once的区别
摘要:include,include_once,require,require_once的区别? 1、include,require在其被调用的位置处包含一个文件。 2、include_once,require_once函数的作用与include相同,不过它会首先验证是否已包含该文件。如果已经包含,则不再 阅读全文

posted @ 2019-07-24 11:11 枫枯 阅读(313) 评论(0) 推荐(0)

require与 include区别
摘要:require 与 include区别? require 这个函数通常放在PHP程序最前面 。 PHP程序在执行前,就会先将require指定的文件读取,使它成为PHP程序的一部分。常用这个函数引入PHP文件。 include 这个函数一般使用在流程控制的时候使用。可以先判断是否需要读取指定文件,再 阅读全文

posted @ 2019-07-24 11:06 枫枯 阅读(344) 评论(0) 推荐(0)

mysql_fetch_assoc与mysql_fetch_array的区别?
摘要:mysql_fetch_assoc与mysql_fetch_array的区别? 1. mysql_fetch_assoc : mysql_fetch_assoc() 函数从结果集中取得一行作为关联数组。返回根据从结果集取得的行生成的关联数组,如果没有更多行,则返回 false。 2.mysql_fe 阅读全文

posted @ 2019-07-24 11:00 枫枯 阅读(1228) 评论(0) 推荐(0)

导航