Re: [PHP3] A shl()/shr() function? From: Karl Pielorz (kpielorz <email protected>)
Date: 09/30/98

Rich Clingman wrote:
>
> I'm looking at encoding binary files for attachment; however, I need a shift
> function.
> PHP2 has shl()/shr() (shift left/right), but PHP3 does not. I looked
> through all of the PHP3 docs & source and find no equivalent function.
> Anyone know of one or a work-around?
>
> Rich Clingman

Hi,

Can't you just use multiples and divides to do this? - Messy admittedly - but
I seem to remember having a similar problem under various incantations of
BASIC...

Regards,

Karl Pielorz

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3