Keys →
Functions ↓
function before ($needle, $haystack) {#-k string parse#- returns the part of $haystack before the 1st $needle#- before ('@', 'biohazard@online.ge');#- will return "biohazard"#-c biohazard dot ge at gmail dot com - https://www.php.net/manual/en/function.substr.php#-d 2/11/21 Added return substr($haystack, 0, strpos($haystack, $needle)); };?>