PHP 8.5.0 Alpha 4 available for testing

Voting

: eight minus three?
(Example: nine)

The Note You're Voting On

Vladimir Kovpak
10 years ago
<?php
/**
* Bind bit value:
*/

$sql = 'SELECT * FROM myTable WHERE level & ?';
$sth = \App::pdo()->prepare($sql);
$sth->bindValue(1, 0b0101, \PDO::PARAM_INT);
$sth->execute();
$result = $sth->fetchAll(\PDO::FETCH_ASSOC);

<< Back to user notes page

To Top