<?php $string = 'Mr N/A N/A'; if(strpos(trim($string),'N/A') !== false) { echo 'To Home'; } else { echo $string ? 'Hi ' . $string : $string; }
You have javascript disabled. You will not be able to edit any code.