Hello all!
I have FeedX importing a feed to my website. Some of the feeds have a string of text I would like removed.
The line of code I need removed is:
<p><a href="
http://www.flickr.com/people/customname/">Username</a> posted a photo:</p>
I don’t know php very well (if I did I wouldn’t be asking

). I looked it up and was fairly confused about arrays.
I would guess I need to do something similar to the following:
$search = array('|(http://[^ ]+)|', '|@([\w_]+)|', '|#([A-Za-z0-9-_]+)|');
$replace = array('<a href="$1">$1</a>', '<a href="http://twitter.com/$1">@$1</a>', '<a href="http://search.twitter.com/search?q=%23$1">#$1</a>');
$output = preg_replace($search, $replace, $output);
return substr($output,10);
It should be easier than the above because the string I am removing is always the same.
Any help with this and/or a clearer explanation of arrays than what’s on the php documentation would be most appreciated.
Thanks