{$field->field_alias} * * The above will guarantee that you'll always get the correct data, * regardless of any changes in the aliasing that might happen if * the view is modified. */ $row = (array)$row; $res = preg_replace("/\[([\w_#]*)\]/e", "\$row['\\1']" ,$field->options['alter']['text']); echo $res ?>