16 lines
192 B
PHP
16 lines
192 B
PHP
|
<?php
|
||
|
|
||
|
namespace Vn\Hedera;
|
||
|
|
||
|
function checkToken ($token)
|
||
|
{
|
||
|
return preg_match ('/^[\w\-]+$/', $token);
|
||
|
}
|
||
|
|
||
|
function ifNull ($map, $key)
|
||
|
{
|
||
|
return isset ($map[$key]) ? $map[$key] : NULL;
|
||
|
}
|
||
|
|
||
|
?>
|