public static function checkType($o) { if (strlen($o) == 1) { if (is_integer($o)) { $html = '<mn>' . $o . '</mn>'; } elseif (is_string($o)) { if (\math\internal\funcs::containsSign($o)) { $html = '<mo>' . $o . '</mo>'; } else { $html = '<mi>' . $o . '</mi>'; } } else { $html = $o; } return $html; } else { return $o; } }