Reputation: 3
I have a problem with this data saved in a MySQL row:
34:3,37:2,64:1,85:4
The first number is an ID that identifies a user, the second number (separated by ":") is the arrival order position.
I need to extract and split the data to create a table with the arrivals order:
Something similar to:
name position
Any suggestion?
Upvotes: 0
Views: 49
Reputation: 492
$split = explode(';', $myvars);
$id = $split[0];
$whatever = $split[1];
Upvotes: 1