How can I split a string at the first occurrence of - (minus sign) into two $vars with PHP?
I have found how to split on every \"-\" but, not only on the first occur
Here is what you need: using list() with explode():
list($var1, $var2) = explode(' - ', 'this - is - line - of whatever - is - relevant', 2);
Note the spaces around the "-" (minus sign)