PlainSQLiteBlog/lib/Util.php
2025-08-14 14:45:20 -06:00

12 lines
251 B
PHP

<?php
class Util
{
public static function diff($a, $b)
{
$a = intval(preg_replace("/[^0-9]/", "", $a));
$b = intval(preg_replace("/[^0-9]/", "", $b));
return abs($a - $b);
}
}
?>