代碼問題,我是小白
<?php
function func() {
? ? echo 'exists';
}
$name = 'func';
if (function_exsits($name) ) { //判斷函數是否存在
? ? $name();
? ? echo 'exists';
}
報錯
<?php
function func() {
? ? echo 'exists';
}
$name = 'func';
if (function_exsits($name) ) { //判斷函數是否存在
? ? $name();
? ? echo 'exists';
}
報錯
2016-08-19
舉報
2016-08-19
是function_exists(),單詞寫錯了
2016-08-19
是function_exists,而不是function_exsits
2016-08-19
你的function_exists打錯了!