![]() |
PHP Help
What php code would I use to strip [tags]keywords,keywords,etc[/tags] from a feed?
|
You're welcome.
Code:
<php |
Maybe I'll try fivver for the first time :)
|
Quote:
|
Its from an rss feed i'm syndicating and it's adding this to the bottom of the posts.
[tags]amateur, anal, teen,etc[/tags] |
You need to look up preg_replace
http://php.net/manual/en/function.preg-replace.php Use [tags] and [/tags] and a wild card in the middle |
if you want to invest a few bucks, hit me up, icq: 33375924
|
Code:
<?php |
|
Quote:
I did not test this, but looks good to me. I would also check out the explode() function after this and split it up using the comma delimiter into an array so you could then add each individual tag into a normalized DB. |
All times are GMT -7. The time now is 03:39 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123