I am trying to split a string a a specific words ie.
$whois = "Record last updated on 10-Apr-2011.Record expires on 08-Oct-2012.Record Expires on 08-Oct-2008.";
preg_split('/Expires|expires/', $whois, $expires);
echo "<pre>";
print_r($expires);
Scratching my head over this tried lots of different solutions need help. Just want the string to be split up like it does with explod but at the word.
So i would get something like this.
array([0]=>'expires on 08-Oct-2012.Record',[1]=>'Expires on 08-Oct-2008.')
help
this is the closest i could make
gives