Jump to content

Archived

This topic is now archived and is closed to further replies.

codeexploiter

converting into 7 Bit ASCII format in PHP, Is this possible??

Recommended Posts

Hi all,

I am looking for any method/function using which i can convert a character into its corresponding 7 Bit ASCII value using PHP.

For example ! (exclamation mark) has a 7 Bit ASCII value of !

Is there any function or way that returns the 7 bit ASCII value of a character? Any help would be appreciated greatly

Regards

Code Exploiter

Share this post


Link to post
Share on other sites
hmmm yes it returns 33 which is the ASCII value of ! but in 7-bit ASCII format its value is [b]&33;[/b]. I wonder whether there is any other method that returns the exact 7 bit ASCII value rather than 33.

Thanks for the help you provided.

I hope to hear from u more about this in the future

Share this post


Link to post
Share on other sites
Try [url=http://uk.php.net/manual/en/function.htmlentities.php]htmlentities()[/url]

Regards
Huggie

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.