include的用法(详细)

In this book,there are 100 stories,____ten historical stories.
A.include B.includes C.included D,including

nclude语句会获取指定文件中存在的所有文本/代码/标记,并复制到使用 include 语句的文件中。

语法:

<?php include 'filename'; ?>

require语句和include的功能是相同的,只是在错误处理方面不一样。

require 会生成致命错误(E_COMPILE_ERROR)并停止脚本。

include 只生成警告(E_WARNING),并且脚本会继续。

扩展资料:

php语句

include()语句包含并运行指定文件。

以下文档也适用于require()。这两种结构除了在如何处理失败之外完全一样。include()产生一个警告而require()则导致一个致命错误。

换句话说,如果想在遇到丢失文件时停止处理页面就用require()。include()就不是这样,脚本会继续运行。同时也要确认设置了合适的 include_path。注意在 php 4.3.5 之前,包含文件中的语法错误不会导致程序停止,但从此版本之后会。

参考资料来源:百度百科-include (计算机专业术语)

温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-01-29
There are 40 students in the classroom, including me.
included有介词用法:including + 宾语 = 宾语 + included.
所以上个例句可写成:There are 40 students in the classroom, me included.
选D
一楼貌似错了....本回答被提问者采纳
第2个回答  2011-02-10
选D
第3个回答  2011-01-29
选A
include:包括,包含,及物动词
include sth.包括某事在内
[辨析]include和contain:二者均有"包含,包括"之意,但是,include表示所包含之物中的一部分,contain指所含之物的全部成分.
如:
The price includes the postage.价钱包括邮费在内.(部分)
The parcel contained a dictionary.那包裹中装的是一本字典.(全部)
相似回答