PHP Code:
$path_ids explode('_',$_GET['cPath']);// break $cPath into array
if (count($path_ids) >= 2) {//test for subcat level
  
$path_firstsub $path_ids[1];// [1] is the second element in the array