php wrap specific word in text string with html tags
This is a small function to wrap a specific word in a text string with a html tag. So lets say I want to wrap the third word in
<b></b>
tags I would use below.
echo WrapWord('This is my line of text!','3','b');
Above would output "This is my line of text!" you will need the function for above to work otherwise it will most likely display a blank page, The function WrapWord(); is below.
Thanks for sharing jake Now a days i'm learning php for wordpress development, i will contact you in future if i need any complex language work
- Sunil BishnoiThanks for sharing jake :) Now a days i'm learning php for wordpress development, i will contact you in future if i need any complex language work :D
[B]- [U]Sunil Bishnoi[/U][/B]
sunil0021
- Sunil Bishnoi Thanks for sharing jake :) Now a days i'm learning php for wordpress development, i will contact you in future if i need any complex language work :D [B]- [U]Sunil Bishnoi[/U][/B]
Are you sure you want to delete this post?