Home > Backend Development > PHP Tutorial > 奇怪的数组问题

奇怪的数组问题

WBOY
Release: 2016-06-06 20:39:25
Original
940 people have browsed it

<code>private function defaults(){
    return array(
        'allowFileManager' => true,
        'allowMediaUpload' => true,
        'allowFlashUpload' => true,
        'allowImageUpload' => true,
        'shadowMode' => false,
        'width' => '100%',
        'height' => '350px',
        'uploadJson' => 'test',
    );
}
print_r($this->defaults());exit;
</code>
Copy after login
Copy after login

奇怪的数组问题
打印处来uploadJson为毛是空, 如果把uploadJson 名字换下 是没问题的

回复内容:

<code>private function defaults(){
    return array(
        'allowFileManager' => true,
        'allowMediaUpload' => true,
        'allowFlashUpload' => true,
        'allowImageUpload' => true,
        'shadowMode' => false,
        'width' => '100%',
        'height' => '350px',
        'uploadJson' => 'test',
    );
}
print_r($this->defaults());exit;
</code>
Copy after login
Copy after login

奇怪的数组问题
打印处来uploadJson为毛是空, 如果把uploadJson 名字换下 是没问题的

http://3v4l.org/4iPth ,书读的少不要骗我啦,其实肯定还是你其他代码的原因,仔细找找咯。

Related labels:
php
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