我怎样才能替换所有'?变量?就像是:
$name = 'test' ;
$lname = 'lastTest';
$id = 1 ;
->where ( 'customers.name = ? and customers.lastname = ? and customers.id = ?' , $name , $lname , $id ) ;
输出:
customers.name = 'test' and customers.lastname = 'lastTest' and customers.id = 1
有任何想法吗?