Skip to content

Instantly share code, notes, and snippets.

Avatar

Trevor Bice trevorbicewebdesign

View GitHub Profile
View HeidiDecode.php
function decodeHeidisql($hex) {
$string = '';
$shift = substr($hex, -1, 1);
$hex = substr($hex, 0, -1);
for($i=0;$i<strlen($hex); $i += 2) {
$string .= chr(intval(substr($hex, $i, 2), 16)-$shift);
}
return $string;
}