- var_export: documentation ( source)
- define: documentation ( source)
<?php
define('LANGUAGE_NONE', 'und');
$node = new stdClass();
$node->type = 'tv_show';
if ($node->type == 'tv_show' && !empty($node->field_show_type[LANGUAGE_NONE]) && !empty($node->field_show_type[LANGUAGE_NONE][0]['value'])) {
var_export($node->field_show_type[LANGUAGE_NONE][0]['value']);
}
else {
echo "field_show_type is empty\n";
}
if ($node->type == 'tv_show' && !empty($node->field_show_type[LANGUAGE_NONE][0]['value'])) {
var_export($node->field_show_type[LANGUAGE_NONE][0]['value']);
}else {
echo "field_show_type is empty\n";
}