I need to add an Order ID + Unique ID for each word what starts with @
.
For example I have a string
like this:
Just @do @it and @do @it.
I want to preg_replace
#(\@)+([^\s]+)#i
to this:
Just <div id="1+Unique ID">@do</div> <div id="2+Unique ID">@it</div> and <div id="3+Unique ID">@do</div> <div id="4+Unique ID">@it</div>.