Home >Backend Development >PHP Tutorial > PHP求解,该如何解决

PHP求解,该如何解决

WBOY
WBOYOriginal
2016-06-13 12:50:03786browse

PHP求解
nbsp;HTML PUBLIC"-//W3C//DTD HTML 4.01 Transitional//En">

    


        
        例题1
    
    
                 // 使用PHP显示当天的日期
        echo"

今天是:";
        print date("Y")."年".date("m")."月".date("d")."日";
        $week= array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
        print $week[data("w")]."

";
        ?>
    

急!!!!求高手指点呀




php
------解决方案--------------------
print $week[data("w")]."";
不是data,是date
------解决方案--------------------
print $week[data("w")]."";改成:print $week[date("w")]."";
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn