php string beginnt mit code example Example: php string beginnt mit if (strpos($s, 'www') === 0) { // $s startet mit "www" }