I am trying to write a PHP function, inside it, I am writing HTML code.
The problem is I am unable to link CSS file to the HTML code.
function foo() {
// ---do some php stuff---
echo '
<html>
<head>
<link href="bar.css" type="text/css" rel="stylesheet"/>
</head>
<body
---some code---
</body>
</html>';
}
What should be the correct approach?