鍚 C 鎴 Perl 涓鏍凤紝PHP 闇瑕佸湪姣忎釜璇彞鍚庣敤鍒嗗彿缁撴潫鎸囦护銆備竴娈 PHP 浠g爜涓殑缁撴潫鏍囪闅愬惈琛ㄧず浜嗕竴涓垎鍙凤紱鍦ㄤ竴涓 PHP 浠g爜娈典腑鐨勬渶鍚庝竴琛屽彲浠ヤ笉鐢ㄥ垎鍙风粨鏉熴傚鏋滃悗
鎸囦护鍒嗛殧绗
鍚 C 鎴 Perl 涓鏍凤紝PHP 闇瑕佸湪姣忎釜璇彞鍚庣敤鍒嗗彿缁撴潫鎸囦护銆備竴娈 PHP 浠g爜涓殑缁撴潫鏍囪闅愬惈琛ㄧず浜嗕竴涓垎鍙凤紱鍦ㄤ竴涓 PHP 浠g爜娈典腑鐨勬渶鍚庝竴琛屽彲浠ヤ笉鐢ㄥ垎鍙风粨鏉熴傚鏋滃悗闈㈣繕鏈夋柊琛岋紝鍒欎唬鐮佹鐨勭粨鏉熸爣璁板寘鍚簡琛岀粨鏉熴 <?php
echo "This is a test";
?>
<?php echo "This is a test" ?>
<?php echo 'We omitted the last closing tag';
Note:
鏂囦欢鏈熬鐨 PHP 浠g爜娈电粨鏉熸爣璁板彲浠ヤ笉瑕侊紝鏈変簺鎯呭喌涓嬪綋浣跨敤 include() 鎴栬 require() 鏃剁渷鐣ユ帀浼氭洿濂戒簺锛岃繖鏍蜂笉鏈熸湜鐨勭櫧绌烘牸灏变笉浼氬嚭鐜板湪鏂囦欢鏈熬锛屼箣鍚庝粛鐒跺彲浠ヨ緭鍑哄搷搴旀爣澶淬傚湪浣跨敤杈撳嚭缂撳啿鏃朵篃寰堜究鍒╋紝灏变笉浼氱湅鍒扮敱鍖呭惈鏂囦欢鐢熸垚鐨勪笉鏈熸湜鐨勭櫧绌烘牸銆
浠ヤ笂灏辨槸PHP鎸囦护鍒嗛殧绗︾殑璇︾粏鍐呭锛屾洿澶氫俊鎭鍏虫敞OD浜戝叾瀹冪浉鍏虫枃绔狅紒