Yes, sure; that is is fine. Heredoc and nowdoc syntax just make it easier to read and edit later though:
<?php
if ($UAinfo['browser'] == "MSIE" AND $UAinfo['browser_version'] < 7){
$pagename = "ver005";
$pages[] = "
echo <<<EOS
<html>
<head>
<script>
</script>
</head>
<body>
<span id=""></span>
</body>
</html>
EOS;
} catch(e) {}
%NextPageVers%
}
";
}
?>