Home  >  Article  >  Backend Development  >  奇怪的数组问题

奇怪的数组问题

WBOY
WBOYOriginal
2016-06-06 20:39:25882browse

<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>

奇怪的数组问题
打印处来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>

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

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

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