<?php $str = 'c1, c3, C5 DESC'; $order = "DESC"; $c = explode(",", $str); $s = preg_replace('/DESC$/', '', $c[2]); var_dump($s);
You have javascript disabled. You will not be able to edit any code.