I'm trying to work with Views PHP but for some reason something is going completely wrong. I have a content field called telephone. In this field is a number "06-12345678" now I want to use Views PHP to remove the "-" so I get the number "0612345678".
What I do is I make a view with the field Telephone and a Global: PHP field underneath it. In this Global: PHP field I add the following code to see if it is working.
<?php print $row->field_telephone; ?>
So when I save this field I get the output: "11" instead of 06-12345678.
When I try <?php print $row->field_title; ?>
it does give me the suspected output..? What am I doing wrong? How can I solve this?
kpr($row)
will give you the exact structure of$row
object. then print the field.