Jump to content

Archived

This topic is now archived and is closed to further replies.

taith

removing data from string

Recommended Posts

hey,
i'm just wanting a simple code which can take a string, and if theres a <? or ?> or " in it, to remove it or change it

Share this post


Link to post
Share on other sites
preg_replace should do the job for ya.

read the manual

[a href=\"http://www.php.net/manual/en/function.preg-replace.php\" target=\"_blank\"]http://www.php.net/manual/en/function.preg-replace.php[/a]

Ray

Share this post


Link to post
Share on other sites
Talking about the preg_grep topic...
I cannot seem to understand the examples about this command..

Can I ask that someone write a simple code to search (grep) a string within a text file and print it out on the screen pls????

Help is needed!

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.