I'm trying to create a web panel for a client who parses information with base64 encoding. I have set up the way to decode it, and if I echo the decoded part in the loop ($data[1]), it will write the correct information. However, I need to be able to put the information into an SQL table and perform work on it before I do that. So, I'm trying to put the data into an array, but it is acting like the array is empty for some reason.
$postData has the base64 decoded information, and it was exploded using & as the exploding agent.
$tokens = array ();
for ($i = 0; count($postData) > $i; $i++) {
$data = explode("=", $postData[$i]);
$tokenAdd = array();
$tokenAdd[] = $data[1];
array_push($tokens, $tokenAdd);
}
var_dump($tokenAdd);
$tokens[][] = $data[1];it does the same but with less function calls because you don't usearray_push().