Вопрос

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