First I declare a variable that I want to use in multiple arrays through the code. This is a snippet of it where it should work, but it doesn't:
The variable:
$test = '<div id="test"> dit is een test </div>';
The array:
$sections[] = array(
'title' => $test,
'icon' => '/img/icons/home.png'
);
The title is always empty :-/
Thanks !!
$sections[0]['title']should display it fine (assuming it's the first element in the array)$test(i.e. a scoping issue). Either way, we'll need to see more code.