<?php
$str = "SELECT";
$query = "SELECT * FROM table WHERE field = 1";
echo "Query begins with $str";
else
echo "Query DOES NOT begin with $str";
?>
PD9waHAKIAokc3RyID0gIlNFTEVDVCI7CiRxdWVyeSA9ICJTRUxFQ1QgKiBGUk9NIHRhYmxlIFdIRVJFIGZpZWxkID0gMSI7CiAKaWYgKHByZWdfbWF0Y2goIi9ec2VsZWN0ICguKikvaSIsIHRyaW0oJHF1ZXJ5KSkgPiAwKQogICAgZWNobyAiUXVlcnkgYmVnaW5zIHdpdGggJHN0ciI7CmVsc2UKICAgIGVjaG8gIlF1ZXJ5IERPRVMgTk9UIGJlZ2luIHdpdGggJHN0ciI7CiAKPz4=