Heim >Backend-Entwicklung >PHP-Tutorial >一份PHP的面试题_PHP教程
echo $_SERVER['PHP_SELF']; echo $_SERVER["HTTP_REFERER"];
0
(4)未授权 (5) header("HTTP/1.0 404 Not Found");
(6)对数组进行逆向排序并保持索引关系 (7)All errors and warnings
/].*?>.*?/si
(10) LoadModule php5_module "D:/xampp/apache/bin/php5apache2.dll" (11) AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml
(12) 发生异常时include产生警告require产生致命错误 (13) require_once()/include_once()
serialize() /unserialize()
allow_call_time_pass_reference
(16) 自然左外连接 (17) select name , count(score) as sum_score from tbl_user left join tbl_score on tbl_user.ID=tbl_score.ID group by tbl_user.ID
结束标识符所在的行不能包含任何其它字符除";"
/** * 遍历目录,结果存入数组。支持php4及以上。php5以后可用scandir()函数代替while循环。 * @param string $dir * @return array */ my_scandir($dir) { $files = array(); if ( $handle = opendir($dir) ) { while ( ($file = readdir($handle)) !== false ) { if ( $file != ".." && $file != "." ) { if ( is_dir($dir . "/" . $file) ) { $files[$file] = rec_scandir($dir . "/" . $file); } else { $files[] = $file; } } } closedir($handle); return $files; } }