和我做了一個自定義的PHP函數,如下所示:使它所以所有的變量沒有被定義,當一個功能,我使用的000webhost被稱爲
function example($test1, $test2, $test3) {
echo $test1 . $test2 . $test3;
}
然後我做example('hello');
和它說:
PHP Error Message
Warning: Missing argument 2 for example(), called in /home/a8525001/public_html/test.php on line 5 and defined in /home/a8525001/public_html/test.php on line 2
Free Web Hosting
PHP Error Message
Warning: Missing argument 3 for example(), called in /home/a8525001/public_html/test.php on line 5 and defined in /home/a8525001/public_html/test.php on line 2
Free Web Hosting
1
有什麼辦法可以阻止這些警告,而無需訪問服務器的php.ini?同樣的代碼工作我的XAMPP服務器上的微細...提前
感謝,
本
您是否在文件頂部嘗試了error_reporting(0)? – sinisake
@nevermind我不認爲這是最好的主意,因爲那樣我看不到其他錯誤...我找到了解決方案並將其發佈到下面。感謝您的建議:) – Speedysnail6