Tazz Posted November 3, 2010 Share Posted November 3, 2010 I don't really know how to explain this, I saw once on some forum members signature, something like this : G = "\ x50 \ x72 \ 157 \ 144 \ x75 \ x63 \ 164 \ x20 \ x6c \ x69 \ 143 \ 145 \ 156 \ x73 \ 145 \ 040 \ x68 \ 141 \ x73 \ 040 \ x65 \ x78 \ 160 \. 151 \ 162 \ x65 \ 144 \ x2e \ x20 "+ E. That somehow translates into words, I know there is a PHP function to convert that, what is that code called and what is the PHP function? Quote Link to comment Share on other sites More sharing options...
ras1986 Posted November 3, 2010 Share Posted November 3, 2010 i think it's settype() Quote Link to comment Share on other sites More sharing options...
Tazz Posted November 3, 2010 Author Share Posted November 3, 2010 Hi ras1896 Thanks for the reply, but thats not what I was looking for. Quote Link to comment Share on other sites More sharing options...
ras1986 Posted November 3, 2010 Share Posted November 3, 2010 i found this by googling... not sure if this helps... For primitives just use (string)$var or print this variable straight away. PHP is dynamically typed language and variable will be casted to string on the fly. If you want to convert objects to strings you will need to define __toString() method that returns string. This method is forbidden to throw exceptions. Quote Link to comment Share on other sites More sharing options...
Tazz Posted November 3, 2010 Author Share Posted November 3, 2010 How does it work, how are the letters represented? Is there some sort of formula that I can use to figure out what code is assigned to which letter? 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.