alexislalas Posted May 15, 2009 Share Posted May 15, 2009 hello, i have a number and want to convert it to ascii. how can i do it? thanks! Quote Link to comment https://forums.phpfreaks.com/topic/158269-convert-to-ascii/ Share on other sites More sharing options...
Maq Posted May 15, 2009 Share Posted May 15, 2009 Look at ord. Quote Link to comment https://forums.phpfreaks.com/topic/158269-convert-to-ascii/#findComment-834743 Share on other sites More sharing options...
alexislalas Posted May 15, 2009 Author Share Posted May 15, 2009 so, i have this value: 05152009090637000601406077 that is what i want to convert to ascii. i do: ord("05152009090637000601406077"); result = 48 chr("05152009090637000601406077"); result = ÿ now, how can i get 48 & ÿ back to 05152009090637000601406077? thanks! Quote Link to comment https://forums.phpfreaks.com/topic/158269-convert-to-ascii/#findComment-834766 Share on other sites More sharing options...
Maq Posted May 15, 2009 Share Posted May 15, 2009 Look at chr. All these functions I find are in the manual, I suggest you take a look. Quote Link to comment https://forums.phpfreaks.com/topic/158269-convert-to-ascii/#findComment-834768 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.