public static function unlocalize($formula) {
        $formula = str_replace(get_string('decsep', 'langconfig'), '$', $formula);
        $formula = str_replace(get_string('listsep', 'langconfig'), ',', $formula);
        $formula = str_replace('$', '.', $formula); // temp placeholder
        return $formula;
    }
public static function unlocalize($formula) {
        $formula = str_replace(get_string('decsep', 'langconfig'), '$', $formula);
        $formula = str_replace(get_string('listsep', 'langconfig'), ',', $formula);
        $formula = str_replace('$', '.', $formula); // temp placeholder
        return $formula;
    }
public static function unlocalize ( $ formula ) { $ formula = str_replace ( get_string ( 'decsep' , 'langconfig' ) , '$' , $ formula ) ; $ formula = str_replace ( get_string ( 'listsep' , 'langconfig' ) , ',' , $ formula ) ; $ formula = str_replace ( '$' , '.' , $ formula ) ; // temp placeholder return $ formula ; }
Similar to unformat_float, converts floats and lists to PHP standards.
@param string $formula localised formula
@return string
Similar to unformat_float converts floats and lists to PHP standards .