RE: [PHP] Hex2Bin??

From: Date: Wed, 01 May 2002 06:14:12 +0000
Subject: RE: [PHP] Hex2Bin??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95476@lists.php.net to get a copy of this message
This one will actually remove money from your bank account if you pass the constant PHP_TAKE_MY_MONEY as the 10th argument. ---John Holmes... > -----Original Message----- > From: Bogdan Stancescu [mailto:mgv@fx.ro] > Sent: Tuesday, April 30, 2002 8:06 PM > Cc: php-general@lists.php.net > Subject: Re: [PHP] Hex2Bin?? > > Computing-intensive, time-consuming and whatever else expensive > functions do ;-) > > Bogdan > > Joshua E Minnie wrote: > > >Expensive how? > > > >-josh > > > >"Bogdan Stancescu" <mgv@fx.ro> wrote: > > > >>I'd recommend writing a wrapper around base_convert, naming it hex2bin > >>and using that instead. base_convert() is way too expensive for this > >>purpose (you know that any hex figure is translated to exactly four > >>bits, so you don't need any actual conversion - just replacement). This > >>is why I suggested the wrapper - you can change the code at any time if > >>you see it's too time-consuming... > >> > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#95476) next »