taith Posted May 19, 2006 Share Posted May 19, 2006 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 Link to comment https://forums.phpfreaks.com/topic/10023-removing-data-from-string/ Share on other sites More sharing options...
craygo Posted May 19, 2006 Share Posted May 19, 2006 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 Link to comment https://forums.phpfreaks.com/topic/10023-removing-data-from-string/#findComment-37220 Share on other sites More sharing options...
freddykhalid Posted May 22, 2006 Share Posted May 22, 2006 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! Link to comment https://forums.phpfreaks.com/topic/10023-removing-data-from-string/#findComment-38013 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.