Need help with a keyword search script PHP?

Josh Davis

New member
Hello, well im designing a script in PHP that searches for keywords in a chunk of text (which is $string)
I need help adding a function that if one of the results are successful display such and such. Please help. Heres the code:
<?php
$string = "Hello word!";
$tmp = search();
$tmp = $string.split("is");

//All of the search terms
$tmp[0] = "He";
$tmp[1] = "llo";
$tmp[2] = "wor";
$tmp[3] = "ld";
$tmp[4] = "!";
?>
 
Back
Top