id:10 Ivysaur Level:5
stored in side $_POST[A]
I'm trying just to grab the id (so the 10) and the name (which in this case is Ivysaur) and I want to store them in a session variable. But before I store them I'm trying to explode it so can split it into parts
$phoneChunks = explode("-", $_POST[A]);
echo "Raw Phone Number = $rawPhoneNumber <br />";
echo "First chunk = $phoneChunks[0]<br />";
echo "Second chunk = $phoneChunks[1]<br />";
echo "Third Chunk chunk = $phoneChunks[2]";
I am getting
Raw Phone Number =
First chunk = Id:10 Ivysaur Level:5
Second chunk =
Third Chunk chunk =
What am i doing wrong ???