I'm using Apache 2.2 with php 5.2.8 and Windows base server (WAMPServer2)
I've got a dynamic string. On one day there can be 20 words and the other day maybe 40 words.
The string look like this (example only):
Code: Select all
$showline = "apples, banana, <strike>peaches</strike>, grapes, <a href=http://www.example.com target=_blank>pineapple</a>, apples-banana, banana, <a href=http://www.example.com target=_blank>pears-peaches</a>, pineapple.com, <strike>banana</strike>, pears.co.uk, pears";Code: Select all
$convert = "<a href=item.php?item=apples>apples</a>, <a href=item.php?item=banana>banana</a>, <strike>peaches</strike>, <a href=item.php?item=grapes>grapes</a>, <a href=http://www.example.com target=_blank>pineapple</a>, <a href=item.php?item=apples-banana>apples-banana</a>, <a href=item.php?item=banana>banana</a>, <a href=http://www.example.com target=_blank>pears-peaches</a>, <a href=item.php?item=pineapple.com>pineapple.com</a>, <strike>banana</strike>, <a href=item.php?item=pears.co.uk>pears.co.uk</a>, <a href=item.php?item=pears>pears</a>";Also note that the string need to have the html codings and that characters need to be included like the apples-banana
Is this possible? If anyone can please help me out it will be much appreciated
Regards
Shaun