Can you use LIKE in an IF statement?
I want to do basically:
<? if $story LIKE player_name { ?> <a href="link">player_name</a> <? } ?>
I'm not around my computer to test this and help would be greatly appreciated.
Nooo but you can check if that string is inside the other or see how close the texts are with the function similar_text
Thanks.
What would be the best way, if any to do this.
Basically if the name John Smith is in the $story string I want it to display the following below the $story string:
<a href="link.php">John Smith</a>