feat: initial foundation for collaborative canteen ordering system in vanilla PHP
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user