donatastommy Posted October 14, 2013 Share Posted October 14, 2013 Sometimes I see things like.. $i="/x80/x80"; Or things like that.. Sometimes with a key $key="/x00"; I have an idea of what it is.. its hex I believe and its can be used to encode/hide information, but can someone elaborate more or give an example of how to do this to something small? Link to comment https://forums.phpfreaks.com/topic/282963-just-a-question/ Share on other sites More sharing options...
Barand Posted October 14, 2013 Share Posted October 14, 2013 Normally you would use it to put characters in a string that are not readily available from a keyboard, eg echo "\xA9 Barand 2013"; //--> © Barand 2013 Link to comment https://forums.phpfreaks.com/topic/282963-just-a-question/#findComment-1453891 Share on other sites More sharing options...
vinny42 Posted October 14, 2013 Share Posted October 14, 2013 Thirteen seconds of googling returns: \x[0-9A-Fa-f]{1,2} the sequence of characters matching the regular expression is a character in hexadecimal notation http://ch.php.net/manual/en/language.types.string.php#language.types.string.syntax.double Link to comment https://forums.phpfreaks.com/topic/282963-just-a-question/#findComment-1453904 Share on other sites More sharing options...
donatastommy Posted October 14, 2013 Author Share Posted October 14, 2013 Thirteen seconds of googling returns: \x[0-9A-Fa-f]{1,2} the sequence of characters matching the regular expression is a character in hexadecimal notation http://ch.php.net/manual/en/language.types.string.php#language.types.string.syntax.double Wasn't sure what to search. Thanks. Link to comment https://forums.phpfreaks.com/topic/282963-just-a-question/#findComment-1453907 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.