Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
echo vsprintf('%s', 'word');
根据手册,vsprintf()函数的第二个参数必须是数组。
vsprintf()
但这有效,正常吗?这有时会导致一些错误?
参数自动转换为$args数组:
$args
$args = (array)$args; // = array('word');