I have this code:
$postList = array();
foreach($post as $blue)
{
$text = $string;
$url = trim(url);
$newPost = array( "ID" => $counter,
"Text" => $text,
"url" => $url );
$postList = array_merge($postList, $newPost);
$counter += 1;
}
This code does not work and what I find into the postList array is the last post item, not the list. How do I insert all the items into the array?
Thanks in advance