RE: [PEAR] Returning boolean values with pear::db

From: Date: Thu, 04 Dec 2003 07:57:09 +0000
Subject: RE: [PEAR] Returning boolean values with pear::db
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9291@lists.php.net to get a copy of this message
> From: Don Robertson [mailto:don@robertson.net.nz] > Sent: Thursday, December 04, 2003 2:16 AM > I am using Pear DB to get boolean values from a postgres database. The > values get returned as t or f, which PHP does not understand as booleans. > > Is there any way to make the pear libraries or postgres to return > something > PHP understands as boolean? Well just take a look at what PHP understands as true/false. Like null would be false, "t" would be true. Alternatively you can look at MDB which features datatype abstraction. Among other datatypes MDB has a datatype for Boolean. Regards, Lukas

« previous php.pear.general (#9291) next »