Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/230.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 使用未定义的常量会导致定义语言值出错_Php_Syntax Error_Notice - Fatal编程技术网

Php 使用未定义的常量会导致定义语言值出错

Php 使用未定义的常量会导致定义语言值出错,php,syntax-error,notice,Php,Syntax Error,Notice,我一直收到这个错误消息PHP注意使用未定义的常量_OTO_YIL_SEC-假设在 我的代码如下: define('_OTO_YIL_SEC','Model Yılı Seç'); echo SelectGenel (_OTO_YIL_SEC,'yil','oto_yil','order by yil desc',intval($_GET['yil']) ); 当我试图使用quetos但它不起作用时,如何使用define value for来避免使用未定义的常量error呢。当我使用引号时,它

我一直收到这个错误消息PHP注意使用未定义的常量_OTO_YIL_SEC-假设在

我的代码如下:

define('_OTO_YIL_SEC','Model Yılı Seç');
echo SelectGenel (_OTO_YIL_SEC,'yil','oto_yil','order by yil desc',intval($_GET['yil']) ); 
当我试图使用quetos但它不起作用时,如何使用define value for来避免使用未定义的常量error呢。当我使用引号时,它表现为字符串而不是值

define('_OTO_YIL_SEC','Model Yılı Seç');
echo SelectGenel (""._OTO_YIL_SEC."",'yil','oto_yil','order by yil desc',intval($_GET['yil']) ); 
“OTO_YIL_SEC”为我工作