PHP 字符串输出 echo、print 与 printf 函数
字符串输出 echo、print 与 printf 函数
PHP 字符串输出
用于字符串输出的函数主要有:
- echo():输出一个或多个字符串
- print():输出一个字符串
- printf():输出格式化字符串
echo()
echo()是指令而不是函数,它没有返回值,可以输出一个或多个字符串。
语法:
void echo ( string arg1 [, string ...] )
例子:
<?php $foo = "foobar"; $bar = "...
本文标题: PHP 字符串输出 echo、print 与 printf 函数
本文链接: https://crm.yallacn.com/jiaocheng/54.html (转载时请注明来源链接)
本文说明: 有问题或投稿请发送至: 邮箱/service@zhimatong.com QQ/1174742835
特别鸣谢: 如果您觉得本文对您有帮助,请给我们一个小小的赞,收藏本文更利于反复学习哦!
热门主题
相关阅读
- PHP常用的获取网页html内容的6种方法
- ThinkPHP使用update函数更新数据的方法
- PHP 将数组打乱 shuffle 函数
- PHP 字符串处理
- PHP implode 函数:将数组元素组合为字符串
- PHP 数组排序 sort、asort 及 ksort 系列函数
- PHP 字符串去除 trim、ltrim 与 rtrim 函数
- PHP 字符串存储(转义) addslashes 与 stripslashes 函数
- PHP 字符串 XHTML格式化显示 nl2br 与 htmlspecialchars 函数
- PHP 字符串获取 substr 与 strstr 函数
- PHP array_filter()函数:过滤数组中的(空)值
- PHP 对数组使用 自然算法 进行排序 natsort 与 natcasesort 函数



交流群
购物车