"",'c' =>"cde",'d' =>"def",'e'=>""); 我想要的结果是: 我的abc 我的cde 我的d "/> "",'c' =>"cde",'d' =>"def",'e'=>""); 我想要的结果是: 我的abc 我的cde 我的d ">

Home >Backend Development >PHP Tutorial >空值-php 循环输出数组里元素时,空的元素不输出,怎么写

空值-php 循环输出数组里元素时,空的元素不输出,怎么写

WBOY
WBOYOriginal
2016-06-02 11:34:081142browse

php空值for循环

$array = array('a' => "abc", 'b' => "",'c' =>"cde",'d' =>"def",'e'=>"");

我想要的结果是:

我的abc
我的cde
我的d

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