how can add item to array? i tried this:
for($i = 0; $i < sizeof($results); $i++)
{
$results[$i][] = array('test' => 'sdsa');
}
print_r($results);
but the result is this for each element ->
Array(
[0] => Array(
[playerid] => 0
[nickname] => Jeffrey_Westh
[score] => 2
[ping] => 123
[0] => Array (
[test] => sdsa
)
)
i and need make this:
Array(
[0] => Array(
[playerid] => 0
[nickname] => Jeffrey_Westh
[score] => 2
[ping] => 123
[test] => sdsa
)