yton Dukes [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 25, 2001 2:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Unwanted Characters
How do I remove unwanted/unprintable characters from a variable?
$sometext = "The car ran over my dog"
needs to be filtered and reprinted as:
&quo
e -
From: [EMAIL PROTECTED]
To: "Clayton Dukes" [EMAIL PROTECTED]
Sent: Sunday, February 25, 2001 2:28 AM
Subject: Re: [PHP] Unwanted Characters
Clayton Dukes wrote:
How do I remove unwanted/unprintable characters from a variable?
$sometext = "The car ran over
On 24 Feb 2001 21:31:33 -0800, Clayton Dukes [EMAIL PROTECTED] wrote:
How do I remove unwanted/unprintable characters from a variable?
$sometext =3D "Th=C0e c=D8ar r=F6=F8an over m=D6y dog"
needs to be filtered and reprinted as:
"The car ran over my dog"
Strip everything which isn't in the list
How do I remove unwanted/unprintable characters from a variable?
$sometext = "The car ran over my dog"
needs to be filtered and reprinted as:
"The car ran over my dog"
Thanks :-)
Clayton Dukes
Look at the chr() function - figure out what the character is (number wise) and
then do an ereg_replace(chr(),'',$string) (from the hip - you can do a replace
with chr() on one of the replaces, I've done it before)
--Joe
On Sun, Feb 25, 2001 at 12:34:21AM -0500, Clayton Dukes wrote:
How do I
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Joe Stump) wrote:
Look at the chr() function - figure out what the character is (number wise)
and
then do an ereg_replace(chr(),'',$string) (from the hip - you can do a
replace
with chr() on one of the replaces, I've done it before)
Clayton Dukes wrote:
How do I remove unwanted/unprintable characters from a variable?
$sometext = "The car ran over my dog"
needs to be filtered and reprinted as:
"The car ran over my dog"
Thanks :-)
Clayton Dukes
?php
$sometext = "The car ran over my dog";
$thread =
7 matches
Mail list logo