function arCss($css) {


  $cleanCss = [];





  // Remove css comments


  $clean1 = explode('/*', $css);


  foreach($clean1 as $clean2) {


      $clean3 = explode('*/', $clean2);


      $cleanCss[] = $clean3[count($clean3) -1];


  }


  $css = implode('', $cleanCss);


  $temp = explode('}', $css);


  $params = [];


  $type = 'all';


  $nextBracketIsNotMediaEnd = false;


  foreach($temp as $tem2) {


      $data = explode('{', $tem2);


      if (count($data) == 1) {


          if ($nextBracketIsNotMediaEnd) {


              $nextBracketIsNotMediaEnd = false;


          } else {


              $type = 'all';


              continue;


          }


      }


      if (count($data) == 3) {


          $typeTemp = trim($data[0]);


          if (substr( $typeTemp, 0, 6 ) === "@media" ) {


              $type = $typeTemp;


              array_shift($data);


          } else {


              $data[1] = $data[0].$data[1];


              $nextBracketIsNotMediaEnd = true;


          }


      }


      if (count($data) == 2) {


          $rows = explode(';',$data[1]);





          $tempData = [];


          foreach($rows as $row) {


              $paramsinline = explode(':', $row);


              if (empty($paramsinline[0]) || empty($paramsinline[1])){


                  continue;


              }


              $tempData[trim($paramsinline[0])] = trim($paramsinline[1]);


          }


          $selector = trim($data[0]);


          if (!empty($tempData)) {


              if (empty($params[$type][$selector])) {


                  $params[$type][$selector] = $tempData;


              } else {


                  $params[$type][$selector] = array_merge($params[$type][$selector], $tempData);


              }


          }


      }


  }


  return $params; 


}