crm-rush/api/php/api.php

16 lines
454 B
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
class core
{
public static $settings = '';
public static $token = ''; // str
/* ----------------------------------------------------------------------
27.09.2024
Работаем с json
---------------------------------------------------------------------- */
static function j($a)
{
return (is_array($a)) ? json_encode($a, JSON_UNESCAPED_UNICODE) : json_decode($a, true);
}
}