print // 输出字符串
1 2 3 |
int print (string $arg) // 语言结构,可以不用圆括号包围参数列表 // 仅支持一个参数,并且总是返回 1 |
echo // 输出一个或多个字符串
1 2 3 |
void echo (string $arg1 [, string $... ]) // 语言结构,可以不用圆括号,如果使用多个参数就不能使用圆括号 // echo接受参数列表,并且没有返回值 |
printf // 输出格式化字符串
1 |
int printf (string $format [, mixed $args [, mixed $... ]] ) |
sprintf // 返回格式化字符串
1 |
string sprintf (string $format [, mixed $...]) |
本着互联网开源、开放的精神和宗旨,本站所有内容可以随便传播。如需转载或分享无需说明来源。
有任何疑问或烦恼,欢迎评论区讨论。
701
暂无回复数据