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

Ads
 

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

Ads









Related Tutorials/Questions & Answers:
string related
Replace String in PHP - PHP
Advertisements
Merging Two Arrays Of Different Lengths
combine two arrays in php
php parse string to float
java fundamental question related to string
validate jtextfield in two different class use keylistener
help to write a program for biology to know if two person are related or not
convert date into String like 9-10-2012 into nine october two thousand twelve
string related question
PHP Regular Expression
PHP search data with different format
JAVA what is different between static block and public static void main(String a[]) method
Strings in PHP
php
php comma delimited string to array - PHP
php
store
store
php
php
remove comma from string php
remove comma from string php
PHP idate() Function
php
PHP and MySQL BETWEEN dates with different years
php
days between two given dates using PHP
php
php
PHP

Ads