<?php $str = "Visit W3Schools"; $pattern = "/w3schools/i"; echo preg_match($pattern, $str); ?>
Pro tip: use ```triple backticks around text``` to write in code fences