How can I split a line at the first occurrence - (minus sign) into two $ vars with PHP?
I found how to divide into each "-", but not just the first occurrence.
Example:
this - is - line - of whatever - is - relevant $var1 = this $var2 = is - line - of whatever - is - relevant
Notice also the first "-" is stripped.
Thanks in advance for your help!
split php
Jimbo Aug 17 '10 at 23:55 2010-08-17 23:55
source share