PHP related - how to explot a string with commas and store into two different variables?

Hi, I have a string and is like this '[tubelist 123456,54321,56789,98765]'. I would like to extract the first value after the tubelist, and store '123456' into a variable. Next i would like to store the rest of the values without the first one '54321,56789,98765' into another variable.

The end result I want to achieve is:

$variable1 = 123456 $variable2 = 54321,56789,98765

thanks

View Answers









Related Tutorials/Questions & Answers:
Advertisements