Why doesn't $row->path output its value? I made a view with a relationship, showing:


Title of the node
Title of the referenced node
Path of the referenced node


These values display as expected, but if I create a PHP field with the following code in the output, it only displays titles.

echo 'Title: '. $row-&gt;title.'&lt;br /&gt;';
echo 'Title 1: '. $row-&gt;title_1.'&lt;br /&gt;';
echo 'Path: '. $row-&gt;path.'&lt;br /&gt;';


Why?
It is a known issue with views_php.  You should be able to access the field information through the $data variable though. If you have Devel installed just run dpm($data) in place of your code above and see how to access the field information.

For what it is worth, it is generally considered bad practice to store php code in the database. I would suggest taking a look and seeing if there is any way you can accomplish what you are after with a template file override or some other means.  If the only thing you are trying to accomplish is concatenation of those 3 fields with labels, you can do that with a regular views 'custom text' field and the tokens views provides.