<?php
require_once("global.php"); //这个懂preg_match("/(.*)\/(index\.php|)\?main=([^\/]+)/is",$WEBURL,$array); //这句看不懂
$MainUrl=$array[3]?$array[3]:"center.php?job=config"; //这句也看不懂 require_once("template/index.htm");
?>谁帮我解释一下~~ 谢谢
require_once("global.php"); //这个懂preg_match("/(.*)\/(index\.php|)\?main=([^\/]+)/is",$WEBURL,$array); //这句看不懂
$MainUrl=$array[3]?$array[3]:"center.php?job=config"; //这句也看不懂 require_once("template/index.htm");
?>谁帮我解释一下~~ 谢谢
2 三元运算符
$a = $b?$c:$d;
等同于:
if($b){
$a=$c;
}else{
$a=$d;
}