View Single Post
Old 10-23-2011, 10:45 PM  
blackmonsters
Making PHP work
 
blackmonsters's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,765
Quote:
Originally Posted by Tempest View Post
Code:
if( isset($product['niche'][0]) && $product['niche'][0] != ''){
    echo $product['niche'][0];
}else{
    echo 'N/A';
}
This is better.
blackmonsters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote