In need of Php simple free text search script

I'm trying to make a basic text search engine using MySQL/PHP with the script <? PHP $text ="Hello World!"; if ($text contains "world") {echo "True";}? >.
Why is it that I'm having an error of "Fatal error: Call to undefined function empty () in /home/h's/public_html/sign/searchtest.php on line 60"?
I need PHP simple free text search script.
Thanks.
