Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

PHP - if its not empty

0 votes
5 views
added Mar 5 in PHP by LC Marshal Captain (20,510 points)
$field_prop_listing_type = '';
if (!empty($node['field_prop_listing_type']['und'])) {
  $field_prop_listing_type = $node['field_prop_listing_type']['und'][0]['value'];
}

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...