Take a part of a string (PHP)

kwtfwlgxtu

New Member
We are trying to get certain parts of a String.We have the string:\[code\]location:32:DaD+LoC:102AD:Ammount:294\[/code\]And we would like to put the information in different strings. For example \[code\]$location=32\[/code\] and \[code\]$Dad+Loc=102AD\[/code\]The values vary per string but it will always have this construction:\[code\]location:{number}:DaD+LoC:{code}:Ammount:{number}\[/code\]So... how do we get those values?
 
Back
Top