bind() public method

Interpolates quoted values in a string with ? in it.
public bind ( $sql, array $params = [] ) : string
$params array
return string
示例#1
0
 public function testBindIntoAQueryWithQuotesInQuotes()
 {
     $binder = new Binder();
     $this->assertEquals($binder->bind("name='\"' and llamas=?", array(24)), "name='\"' and llamas='24'");
 }