How to use Views PHP to rewrite results of a field?
Above the "Output Code" section you should check the $data variable in the "Value" field.

Usually I just dpm($data) to find the field I need.  Then you can save it to the $static['myvalue'] variable for use in the "Output Code" field.

It is confusing but for some reason if you try just the $row-&gt;xxx variables in the "Output Code" section they are empty or set to the node-id.