PHP求解,该如何解决

WBOY
Release: 2016-06-13 11:19:20
Original
1058 people have browsed it

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")]."";
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!