Re: Hex2Bin??

From: Date: Wed, 01 May 2002 01:34:05 +0000
Subject: Re: Hex2Bin??
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-95465@lists.php.net to get a copy of this message
Perhaps you could use something a little more KISS- like rawurldecode(chunk_split ( $hexstring, 2 , "%")) not sure if it would be faster than base_convert or not, but it wouldn't be too hard to find out. On Tuesday 30 April 2002 11:50 am, you wrote: > Although the first comment was not what I needed, I did find another > built-in function that converts between any base, base_convert($number, > $frombase, $tobase) worked wonderful for what I needed. > > Josh > > "Miguel Cruz" <mnc@stoic.net> wrote in message > news:Pine.LNX.4.44.0204301331340.24584-100000@stoic.net... > > > On Tue, 30 Apr 2002, Joshua E Minnie wrote: > > > I know that there is a built-in function for bin2hex(), but does any > > body > > > > know have any code to do just the opposite, convert hex2bin? > > > > Check the first comment in the manual under bin2hex. > > > > miguel -- Not life, but good life, is to be chiefly valued. Socrates

« previous php.general (#95465) next »