For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > March 2004 > Convert to ascii









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Convert to ascii
Barton

2004-03-26, 11:13 pm

Hello,

I whish there was a build-in function to convert all special
characters in a string to ascii values before putting the string in an
XML object.

I've been googling around but cound't find a function that does.

Grtz,

Barton
.:Ninja

2004-03-26, 11:13 pm

Barton wrote:

> I whish there was a build-in function to convert all special
> characters in a string to ascii values before putting the string in an
> XML object.


You're probably looking for the character type functions:
http://www.php.net/manual/en/ref.ctype.php

If not, you can probably hack away with the string functions:
http://www.php.net/manual/en/ref.strings.php

Albe
--
http://www.ninja.up.ac.za
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com