<?php function str_starts_with($haystack, $needle){ return substr_compare($haystack, $needle, 0, strlen($needle)) === 0; }