Hai provato ad aprire il manuale ufficiale (es. http://www.php.net/strpos ) e provare uno dei tanti esempi proposti?