You are here: How to convert ascii to text « PHP Programming Language « IT news, forums, messages
How to convert ascii to text

Posted by veg_all on 12/15/06 05:16

I replace some user input with their ascii equivalent so they display
on the webpage properly:

$entry = preg_replace ( "/\'+/" , '&#39' , $entry);
$entry = preg_replace ( "/\,+/" , '&#44' , $entry);

I then need to email the data, however in email the ascii code is
displayed, not the text.
Is there an easier way to convert the ascii back to the text without
another preg_replace?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация