Drupal 9.49
PHP 8.0
Views 9.49
I am returning the title field in a view. The title being returned is "XYZ Aberdeen".
I want it to simply return "Aberdeen"
When I click on "Content: Title" and then "Rewrite results" I was hoping I could simply use the following code:
<?php print str_replace('XYZ', '', {{ title }}); ?>
Can anyone tell me how to do this please?