阅读目录
使用PHP的 vsprintf()
函数,提示 “too few arguments”(缺少参数),但是我只写了2个占位符,也相应的传递了两个变量。
代码如下:
$sql = "select * from a where id=%u and age=%u and name like '123%'";
$id=1;
$age=12;
$result = vsprintf(
使用PHP的 vsprintf()
函数,提示 “too few arguments”(缺少参数),但是我只写了2个占位符,也相应的传递了两个变量。
代码如下:
$sql = "select * from a where id=%u and age=%u and name like '123%'";
$id=1;
$age=12;
$result = vsprintf(
微信扫码登录