Hi,
Is it possible in php to split a sentance into different words and then add some html to before/after each word?
e.g. I have the following text in a variable:
"Acrylic Flower Vase Block Square"
I want to break the sentance into its component words, e.g.
Acrylic
Flower
Vase
Block
Square
I want to then wrap a <a> around them linking to the search script so that each one can be searched on.
any ideas?
Thanks,
Paul.
Is it possible in php to split a sentance into different words and then add some html to before/after each word?
e.g. I have the following text in a variable:
"Acrylic Flower Vase Block Square"
I want to break the sentance into its component words, e.g.
Acrylic
Flower
Vase
Block
Square
I want to then wrap a <a> around them linking to the search script so that each one can be searched on.
any ideas?
Thanks,
Paul.
Comment