Adding custom functions PHP to use in a views template
You can use a preprocess function in your template.php file. For example:

function YOURTHEME_preprocess_views_view_fields__field_name(&amp;$vars) {
  // Do your changes for the field here
}