index.php 中出错
<?php
//url 形式 index.php?controller=控制器名&method=方法名
require_once('function.php');
$controllerAllow=array('test','index');
$methodAllow=array('test' ,'index' ,'show');
$controller=in_array($_GET['controller'],$controllerAllow) ?daddslashes($_GET['controller']):'index';
$method=in_array($_GET['method'],$methodAllow) ? daddslashes($_GET['method']):'index';
C($controller,$method);
}?>
报错显示在第六行的daddslashes
Parse error: syntax error, unexpected '锛焏addslashes' (T_STRING) in D:\WWW\mvc\index.php on line 6怎么会是这个呢