Hi Wetha,
Instead of quoting the chars you don't want, it's easier and safer to quote the
ones you will allow.
No chance of missing any out then :-)
But, if you're going to use an array, you made a mistake in your quotes in the
array.
As Patrick and James said, "'" (double single double) quotes will work.
I normally put a space between array items to make them more readable (but
don't include them if I post) as they get all mashed up. That's where a colour
coded editor is helpful.
Bob E.
----- Original Message -----
From: "W. Smith" <[EMAIL PROTECTED]>
$remove = array
('?','!','%','&','(',')','"','@','/','$',',',';',':','*','#','"','"',
'=','+','-');
$filename=str_replace($remove,"",$filename);
the only character I can't put into the line to be
removed or replaced is ' it makes an error if I put that in, if
there is a way to include that in the line, it would be great, any
suggestions?
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/