perl pack() equivalent for php with 'B'
| From: | FOSS Labs | Date: | Mon, 26 May 2003 22:13:12 +0000 |
| Subject: | perl pack() equivalent for php with 'B' | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-149013@lists.php.net to get a copy of this message | ||
I am porting some perl code to php. I came accross the
perl pack() that has a 'B' format code that is missing
in PHP pack(). Is there an equivalent function that i
can use or can anyone tell me how i can write an
equivalent to it?
I came accross this at the following link:
http://fooassociates.com/phpfer/html/rn45re877.html
"'B' = Bit string, high-to-low order (See PHP's
decbin() function. This is also roughly similar to the
Perl vec() function, which has no cognate in PHP."
That din't make sense to me. Can anybody please help
me?
FOSSY
________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.yahoo.com