<?php $s = 'Another beautiful day'; echo (preg_match ('/BEautiFul/i', $s) ? 'MATCH' : 'NO MATCH') . "\n"; ?>