Re: CONVERT function

From: Date: Wed, 27 Dec 2000 04:18:41 +0000
Subject: Re: CONVERT function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31915@lists.php.net to get a copy of this message
If you mean to convert the text "1" to the number 1, you mostly don't have to worry about it -- PHP will convert as needed. But, if you really wanna get picky about it, you can do this: $foo = (int) $bar; If you mean to convert the character whose ascii value is 1 to 1, you would use: http://php.net/manual/function.ord.php http://php.net/manual/function.chr.php However: The CONVERT function error message is almost-for-sure coming from your DATABASE. Search your DATABASE documentation for that function. ----- Original Message ----- From: "Tait Grove" <taitg@digitalimagination.com> Newsgroups: php.general Sent: Tuesday, December 26, 2000 7:28 PM Subject: [PHP] CONVERT function I am looking for a function that converts a ASCII number say 1, to a numeric 1. I using this against a database for the identity and wanted to use this number to delete the record. When I execute the statement it tells me to look for the Convert function. I need help... -Tait Tait Grove . DI Development » taitg@digitalimagination.com » Digital Imagination » www.digitalimagination.com » New Media Today »

« previous php.general (#31915) next »