Hướng dẫn dùng 04d python trong PHP
(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8) vsprintf — 返回格式化字符串 vsprintf(string The format string is composed of zero or more directives: ordinary characters (excluding A conversion specification follows this prototype: An integer followed by a dollar sign An integer that says how many characters (minimum) this conversion should result in. A period 注意: If the period is specified without an explicit value for precision, 0 is assumed. 注意: Attempting to use a position specifier greater than General format. Let P equal the precision if nonzero, 6 if the precision is omitted, or 1 if the precision is zero. Then, if a conversion with style E would have an exponent of X: If P > X ≥ −4, the conversion is with style f and precision P − (X + 1). Otherwise, the conversion is with style e and precision P − 1. 警告 The 警告 Attempting to use a combination of the string and width specifiers with character sets that require more than one byte per character may result in unexpected results Variables will be co-erced to a suitable type for the specifier: 根据 示例 #1 vsprintf(): 前导 0 的整数
以上例程会输出: 参见
spectrumcat ¶ 5 years ago
Josef Kufner ¶ 9 years ago
crash ¶ 1 year ago
www dot wesley at gmail dot com ¶ 14 years ago
vsprintf( "%%my_name\$s = '%my_name\$s'\n", $examples); // [unsupported] Roadster ¶ 15 years ago
jon at ardentcreative dot co dot uk ¶ 16 years ago
"../lang/" . lang() . "/phrases.php"); dee jay simple zero07 at geemail dawt co ¶ 9 years ago
$returnText;
steven at nevvix dot com ¶ 4 years ago
$format = << jed at NOSPAM dot jed dot bz ¶ 18 years ago
ASchmidt at Anamera dot net ¶ 4 years ago
|