PHP numbers manipulation
Posted
by Misha Moroshko
on Stack Overflow
See other posts from Stack Overflow
or by Misha Moroshko
Published on 2010-06-06T15:01:45Z
Indexed on
2010/06/06
15:12 UTC
Read the original article
Hit count: 146
php
$ch
is a character.
I need to convert it into 2 numbers like that (example):
$ch = 'A' => ASCII code: 0x41
=> Binary: 0100 0001
=> {4, 1}
What is the easiest and fastest method to achieve this ?
© Stack Overflow or respective owner