문제

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