[ create a new paste ] login | about

Link: http://codepad.org/WWwfcfea    [ raw code | output | fork ]

PHP, pasted on Dec 24:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php

$content = (object) array();
$content->images = array();

if(isset($content) && count($content)) {
  //$content has properties...
  if(isset($content->images)) { //$content->images exists
    //awesome stuff goes here...
    echo "images exist!";
  } else {
    echo "images does not exist";
  }
}


Output:
1
images exist!


Create a new paste based on this one


Comments: