Home > Backend Development > PHP Tutorial > 请问下这个百分号是啥意思啊 看不懂

请问下这个百分号是啥意思啊 看不懂

WBOY
Release: 2016-06-23 13:44:03
Original
1050 people have browsed it


回复讨论(解决方案)

这是 转换字符   PHP的sprintf是对c中sprintf的封装
 
用于表示格式化字符串的时候   如何格式化对待对应位置的参数 

%d - 把对应位的参数转换当成带符号十进制数  然后替换%d 
%s - 把对应位的参数转换字符串 然后替换%s

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template