php if array key exists inside multidimentional array
Posted
by Richard
on Stack Overflow
See other posts from Stack Overflow
or by Richard
Published on 2010-05-10T11:05:42Z
Indexed on
2010/05/10
11:14 UTC
Read the original article
Hit count: 412
how can i check if logo exists in this array called $attachements print_r is below:
Array ( [logo] => /home/richar2/public_html/ioagh/images/stories/jreviews/20100510115659_1_img.gif )
when theres no logo, the array print_r's
Array ( )
i tried: if (isset($attachments['logo']) ) {..} but the conditional code runs when there is no logo
© Stack Overflow or respective owner