I want to know how i can split a string in php based on a series of characters.
Like for example, i have a string as: a^b^^c^^^d^^^^e
Now how i can break this string into an array as: a,b,c,d,e ?
The php explode function does not seem to work here….
Please help..
You can use the
preg_splitfunction: