Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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;
}
echo decodeHeidisql('755A5A585C3D8141786B3C385E3A393');
@trevorbicewebdesign

This comment has been minimized.

Copy link
Owner Author

@trevorbicewebdesign trevorbicewebdesign commented Dec 23, 2014

Here is a PHP version some people may find handy.
http://webdesign.trevorbice.com/

@DRSDavidSoft

This comment has been minimized.

Copy link

@DRSDavidSoft DRSDavidSoft commented Dec 25, 2018

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment