Created
November 13, 2019 07:19
-
-
Save LutfiTekin/efcb606f279ffce8249cea3affd14e82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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