RE: [PHP] Convert a string to ASCII

From: Date: Fri, 11 Feb 2005 22:48:51 +0000
Subject: RE: [PHP] Convert a string to ASCII
Groups: php.general 
Request: Send a blank email to php-general+get-208574@lists.php.net to get a copy of this message
> -----Original Message----- > From: Shaun [mailto:shaunthornburgh@hotmail.com] > Sent: Friday, February 11, 2005 4:44 PM > To: php-general@lists.php.net > Subject: Re: [PHP] Convert a string to ASCII > > > > "Jay Blanchard" <jay.blanchard@niicommunications.com> wrote > in message > news:C8F323573C030A448F3E5A2B6FE2070B03523172@nemesis... > [snip] > Is it possible to create an ascii representation of a string > with php, i had a look on the site but with no luck :( [/snip] > > You mean like this? > > __________________________________________________ > > ^(picture of a string, obvious).....j/k > > Do you mean the ascii values for a string? Yes it is > possible, it only requires that you use one of the regex or > replace functions > > Hi, > > Thanks for your reply, yes for each character in the string I need to > replace it with its ascii representaion > http://us3.php.net/function.ord HTH, Jesse R. Castro

« previous php.general (#208574) next »