Hacking to Win Hacking to Win - 27 days ago 15
PHP Question

How to explode php result

I'm sorry for bad English.

First, this is my code:

$cok = $get->signup("4110069061");
echo $cok;


And the result is:

kKIR4cGstfwkl9obhc58gaozugo5k7yc9vmm77p3:4110069061.c6384ef.821b51c9fbe54980a7a4e45847767079:4110069061:13090485


My questions is:

How to explode this delim ":"

I want to make this result like this:

Session:


kKIR4cGstfwkl9obhc58gaozugo5k7yc9vmm77p3


Token:


4110069061.c6384ef.821b51c9fbe54980a7a4e45847767079


ID:


4110069061


MID:


13090485


Can you understand? Please help me

Thank you

Answer
$cokArray = explode(":", $cok)

You will get an array which will be spited.