1
16 진수 값의 서브 섹션을 가져올 수 있습니까? 예 :PHP substr of hex
0x7dd becomes 0xdd
또는 이진 값의 하위 섹션을 가져올 수도 있습니다. 예를 들면 다음과 같습니다.
$hex = 0x7dd;
$bin = hex2bin($hex);
$ bin = substr($bin,4); //so it excludes the four most significant bits ie. the most significant hex digit
누구든지 효율적인 방법을 알고 있습니까?
가능한 복제 [? PHP에서 비트 마스크를 구현하는 방법 (http://stackoverflow.com/ question/11880360/how-to-implement-a-bitmask-in-php) –