英 [prɪnt]   美 [prɪnt]  

n.(由底片印出的)照片;印刷字体;印痕;印成的图画

vt.(在松软的表面)压印;把…付印

vt.& vi.用印刷体写;冲洗(照片);登载;在纸上印

第三人称单数: prints 复数: prints 现在分词: printing 过去式: printed 过去分词: printed

php print()函数 语法

作用:输出字符串

语法:int print ( string $arg )

参数:

参数描述
arg输出arg,print 实际上不是函数(而是语言结构),所以可以不用圆括号包围参数列表。

说明:print 仅支持一个参数,并总是返回 1。

php print()函数 示例

<?php
$data = "hello php.cn";
print $data;
?>

运行实例 »

点击 "运行实例" 按钮查看在线实例

输出:

hello php.cn


<?php
$data = "Learning PHP in php.cn is a good choice";
print $data;
?>

运行实例 »

点击 "运行实例" 按钮查看在线实例

输出:

Learning PHP in php.cn is a good choice

热门推荐