private function decodeCheckVersion($dataValid, $assocValid, $depthValid, $optionsValid)
    {
        //In 5.4 add options param
        if(version_compare(PHP_VERSION, '5.4.0') >= 0)
        {
            return json_decode($dataValid, $assocValid, $depthValid, $optionsValid);
        }

        return json_decode($dataValid, $assocValid, $depthValid);
    }
private function decodeCheckVersion($dataValid, $assocValid, $depthValid, $optionsValid)
    {
        //In 5.4 add options param
        if(version_compare(PHP_VERSION, '5.4.0') >= 0)
        {
            return json_decode($dataValid, $assocValid, $depthValid, $optionsValid);
        }

        return json_decode($dataValid, $assocValid, $depthValid);
    }
private function decodeCheckVersion ( $ dataValid , $ assocValid , $ depthValid , $ optionsValid ) { //In 5.4 add options param if ( version_compare ( PHP_VERSION , '5.4.0' ) >= 0 ) { return json_decode ( $ dataValid , $ assocValid , $ depthValid , $ optionsValid ) ; } return json_decode ( $ dataValid , $ assocValid , $ depthValid ) ; }
Options param add 5.4

@param $dataValid
@param $assocValid
@param $depthValid
@param $optionsValid
@return mixed
Options param add 5 . 4