Issues (2)

test.php (1 issue)

Severity
1
<?php
2
/** 用于测试代码。For testing. */
3
/** Correct output: H3o W3d, K8s, i18n a1d l10n! */
4
5
require_once "i7h.php";
6
$i7h = new i7h();
7
echo $i7h->i18n('Hello World, Kubernetes, internationalization and localization!')
8
?>
0 ignored issues
show
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...
9