2019年7月24日

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 枫枯 阅读(302) 评论(0) 推荐(0) 编辑

require与 include区别

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

posted @ 2019-07-24 11:06 枫枯 阅读(326) 评论(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 枫枯 阅读(1179) 评论(0) 推荐(0) 编辑

导航