Skip to content

Instantly share code, notes, and snippets.

@LutfiTekin
Created November 13, 2019 07:19
Show Gist options
  • Save LutfiTekin/efcb606f279ffce8249cea3affd14e82 to your computer and use it in GitHub Desktop.
Save LutfiTekin/efcb606f279ffce8249cea3affd14e82 to your computer and use it in GitHub Desktop.
<?php
if(preg_match_all('/\p{C}/u', $ty_json, $out, PREG_OFFSET_CAPTURE))
{
echo "<pre>\n";
foreach($out[0] AS $k => $v) {
echo "detected ".bin2hex($v[0])." @ offset ".$v[1]."\n";
}
echo "</pre>";
}
//https://stackoverflow.com/a/15423899
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment