<?php
$string= "สวัสดีครับขอบคุณที่ตอบคำถาม";
$findme = 'สวัสดี';
$pos = strpos($string, $findme);
// Note the use of ===. Simply == would not work as expected
// because the position of 'a' was the 0th (first) character.
if ($pos === false) {
echo "The string '$findme' was not found";
} else {
echo "The string '$findme' was found";
}
?>