I have an array in PHP where some of the inputs are just literal strings while one input has a variable inserted. I am getting an error that says "syntax error, unexpected "", expecting ')' on line 66". This doesn't make sense to me as it is simply an array of strings, and I hadn't closed the array or done anything funky yet.
Here is my code.
private $headerLink;
private $header = array(
"<header>",
"\t\t<h1><a href=$headerLink>Daily Drop</a></h1>",
"\t</header>"
);
$headerLink is initialized in the constructor so it is not because it is empty. I even tried just setting it to be "test" to make sure that wasn't it but it did not work.
Does anyone know what is causing this error and how to fix it?
Thanks so much!