<?php $str = '"4:01pm - <b>n1234</b>",+0.50'; preg_match('/\"(.*?)\s-\s(.*?)\",(.*)/', strip_tags($str), $matches); unset($matches[0]); // unset [0] because that is the full match. $matches[] = array_shift($matches); // takes first item and makes it last. echo implode("<br>\n", $matches); //var_dump($matches);
You have javascript disabled. You will not be able to edit any code.