Exploding php posts

Mario

New Member
\[code\]id:10 Ivysaur Level:5\[/code\]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\[code\]$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]";\[/code\]I am getting\[code\]Raw Phone Number =First chunk = Id:10 Ivysaur Level:5Second chunk =Third Chunk chunk = \[/code\]What am i doing wrong ???
 
Top