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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Solution vinny42 Posted October 14, 2013 Solution 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.