$title = "Anniversary Company Blog"; // 先頭から2文字を取得 $spam= mb_strimwidth($title,0,2,'',utf-8); if(!($spam==="PR")){ // 内容を表示 }