Files
canteenhub/app/Core/Helpers.php
T

20 lines
344 B
PHP

<?php
declare(strict_types=1);
// Global Helper Functions
if (!function_exists('e')) {
function e(mixed $value): string
{
return \App\Core\View::escape($value);
}
}
if (!function_exists('money')) {
function money(float|int|string $amount): string
{
return '$' . number_format((float)$amount, 2);
}
}