I have an array like this:
function func1()
{
$web( 'news' => 'yes',
'items' => '');
// I call `$web['item']` and fill it as array:
$web['item'][] = 'item1';
$web['item'][] = 'item2';
$web['item'][] = 'item3';
foreach($web['item'] as $item) echo $item,'-';
//result: item1 - item 2 - item 3
func2($web)
}
Now everything sound good...but when I send $web to another function it just print.
function func2($web)
{
foreach($web['item'] as $item) echo $item,'-';
//result: item1 -
}
What is my wrong?