Private/Polyfony/Format.php
public static function integer($value) :int {
		if(strrpos($value, '.')) {
			$value = str_replace(',', '' , $value);
		}
		elseif(strrpos($value, ',')) {
			$value = str_replace('.', '' , $value);
		} 
		return(intval(preg_replace('/[^0-9.\-]/', '', str_replace(',', '.' , $value))));
	}
public static function integer($value) :int {
		if(strrpos($value, '.')) {
			$value = str_replace(',', '' , $value);
		}
		elseif(strrpos($value, ',')) {
			$value = str_replace('.', '' , $value);
		} 
		return(intval(preg_replace('/[^0-9.\-]/', '', str_replace(',', '.' , $value))));
	}
public static function integer ( $ value ) : int { if ( strrpos ( $ value , '.' ) ) { $ value = str_replace ( ',' , '' , $ value ) ; } elseif ( strrpos ( $ value , ',' ) ) { $ value = str_replace ( '.' , '' , $ value ) ; } return ( intval ( preg_replace ( '/[^0-9.\-]/' , '' , str_replace ( ',' , '.' , $ value ) ) ) ) ; }
will clean the value of anything but 0-9 and minus preserve sign return integer
will clean the value of anything but 0 - 9 and minus preserve sign return integer