When I input this PHP code, the magic constant _LINE_ just gets output literally.

<!DOCTYPE html>
<html>
<body>

<?php

echo "This is line"._LINE_."blah";

?>
</body>
</html>

Output:

 This is line_LINE_

What am I doing wrong?

有帮助吗?

解决方案

two underscores before and after :

__LINE__
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top