php模块中的tideSDK错误

php模块中的tideSDK错误,php,function,module,tidesdk,Php,Function,Module,Tidesdk,我创建了这个函数: index.php: <?php function hello(){ echo "hello word"; } ?> 如何修复此问题?功能保存在应用程序的缓存中 如果刷新页面,应用程序将显示预先创建的功能 解决方案: if(!function_exist("hello")){ function hello(){ echo "hello word"; } } 我修复了这个问题,使用:if!函数_exists'hello'{function

我创建了这个函数:

index.php:

<?php
 function hello(){
    echo "hello word";
}
?>

如何修复此问题?

功能保存在应用程序的缓存中

如果刷新页面,应用程序将显示预先创建的功能

解决方案:

if(!function_exist("hello")){
 function hello(){
     echo "hello word";
 }
}

我修复了这个问题,使用:if!函数_exists'hello'{function hello{……}//function _exists如果函数存在则返回true,否则返回false。
if(!function_exist("hello")){
 function hello(){
     echo "hello word";
 }
}