PHP: codecomments inside functions prevents it work
<pre><code>$query = $connect-&gt;prepare("SELECT firstname, lastname FROM users WHERE id = '$id'");

$query-&gt;execute();

$row = $query-&gt;fetch();

// $full_name = $row["firstname"] . " ".$row["lastname"];

$full_name = $row["firstname"] . " ".substr($row["lastname"], 0, 1).".";

return $full_name;
</code></pre>

<p>If i remove the line that is a comment ( // ), it will return $full_name, if its there then it wont work. I also tried commenting with #, but it still wont work(wont return anything) as soon as there is a codecomment</p>

<p>weird issue</p>
