Which is more efficient:
function pageHead($title) {
?>
<head>
<title><?=$title?></title>
<link rel="stylesheet" href="style.css" type="text/css">
<script language="JavaScript" src="javascript.js"></script>
</head>
<body>
<?php
}
or
function pageHead($title) {
echo '';
echo '<head>';
echo '<title>' . $title . '</title>';
echo '<link rel="stylesheet" href="style.css" type="text/css">';
echo '<script language="JavaScript" src="javascript.js"></script>';
echo '</head>';
echo '<body>';
}
or the same with " and the variable inline?
I head switching between php and html mode is slow... Any offers?
The reason I ask, is that I'm writing a high traffic site (currently html) in php with a shopping cart etc., and I want to be as efficient as possible (and not bring his server to it's knees!)
TIA
Danny