I have a string in PHP.
$str = "1.testone (off) 2.testtwo (off) 3.testthree (off)"; I need to split the string between the "." and the " (".
I know I can split the string at either the "." with:
$str1 = explode('.', $str);
This puts the string into an array with the array items being between the ".". Is there any way to make an array with the array items between the "." and " (", and either cut out the rest, or keep it in the array, but explode the string at 2 different spots.