note 44095 added to function.chr

From: Date: Thu, 15 Jul 2004 03:05:07 +0000
Subject: note 44095 added to function.chr
Groups: php.notes 
Request: Send a blank email to php-notes+get-73256@lists.php.net to get a copy of this message
When having to deal with parsing an IIS4 or IIS5 metabase dump I wrote a simple function for converting those MS hexidecimal values into their ascii counter parts. Hopefully someone will find use for it. function hex_decode($string) { for ($i=0; $i < strlen($string); $i) { $decoded .= chr(hexdec(substr($string,$i,2))); $i = (float)($i)+2; } return $decoded; } ---- Manual Page -- http://www.php.net/manual/en/function.chr.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44095 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44095&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44095&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73256) next »