Re: Really easy question

From: Date: Thu, 20 Mar 2003 12:35:15 +0000
Subject: Re: Really easy question
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-26510@lists.php.net to get a copy of this message
I think Jeremy means how to use it as an integer, if it is stored as a string. In this case, use $intvalue = $strvalue + 0, where $strvalue is "0", "1" and so on. Edwin Jeremy wrote:
Hey folks, Im apologize that this is just a really easy general php question but any help would be appreciated. if i have a variable that is = to something like "0" or "1" but I just need it to be 0 or 1. how do i strip the " off. thanks, Jeremy


« previous php.db (#26510) next »