[Solved] Php code Parse error: syntax error, unexpected [closed]


“It should be like <a href="https://stackoverflow.com/questions/17663024/./student.php?id=33">33</a> 33

Here is the code:

<?php
$food = array("clickid" => 33);
$getfood = "<a href=\"https://stackoverflow.com/questions/17663024/./student.php?id=" .
    $food['clickid'] . "\">". $food['clickid'] . "</a> " . $food['clickid'];
print $getfood;

Prints:

<a href="https://stackoverflow.com/questions/17663024/./student.php?id=33">33</a> 33

Mind, that I escaped the quotes and concatenated every piece of string with a dot.

1

solved Php code Parse error: syntax error, unexpected [closed]