I know this is a silly question, but i\'m stucked! I have the following array:
Array ( [type] => 8 [message] => Use of undefined constant hola - assumed \'
It's an associative array and you need to access elements by key. In your case:
$var = $array['message'];