Published in: PHP
function byteCode($data) { $hexArray = str_split($hex, 2); foreach($hexArray as $byteCode) { $return .= '\x'.$byteCode; } return $return; }
You need to login to post a comment.
Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.
ishkur on 07/22/08
1 person has marked this snippet as a favorite
Published in: PHP
function byteCode($data) { $hexArray = str_split($hex, 2); foreach($hexArray as $byteCode) { $return .= '\x'.$byteCode; } return $return; }
You need to login to post a comment.