Home  >  Article  >  Backend Development  >  php中惯用的字符串输出函数

php中惯用的字符串输出函数

WBOY
WBOYOriginal
2016-06-13 11:50:15665browse

php中常用的字符串输出函数

echo() 输出字符串

print() 输出一个或多个字符串

die() 输出一条消息,并退出当前脚本

printf() 输出格式化字符串

sprintf() 把格式化的字符串写入一个变量中

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn