I'm using CodeIgniter 3 and a PostgreSQL 9.4 database. Is there a way to get boolean values in PHP if the data type of the respective column in the database is a boolean?
I'm using CodeIgniters query builder class as follows:
$qry = $this->db->get_where('user', array('username' => mb_strtolower($username)));
return $qry->row();
All boolean values from the user table are represented by strings ('t' and 'f').