Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



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

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


franky
PHP related - how to explot a string with commas and store into two different variables?
0 Answer(s)      2 years ago
Posted in : PHP


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


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com