PHP: Add Unique ID + Order ID for each word what starts with @

BlackVenom

New Member
I need to add an Order ID + Unique ID for each word what starts with \[code\]@\[/code\].For example I have a \[code\]string\[/code\] like this:\[code\]Just @do @it and @do @it.\[/code\]I want to \[code\]preg_replace\[/code\] \[code\]#(\@)+([^\s]+)#i\[/code\] to this:\[code\]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>.\[/code\]
 
Back
Top