debug\ncode optimization
This commit is contained in:
16
utils.php
16
utils.php
@ -1,9 +1,23 @@
|
||||
<?php
|
||||
logger(DEBUG,"Including utils.php");
|
||||
|
||||
function bool2string($var)
|
||||
{
|
||||
if ($var === false)
|
||||
{
|
||||
return "false";
|
||||
}elseif($var === true)
|
||||
{
|
||||
return "true";
|
||||
}else
|
||||
{
|
||||
return $var;
|
||||
}
|
||||
}
|
||||
|
||||
function now()
|
||||
{
|
||||
return new DateTime("now");
|
||||
return date("c");
|
||||
}
|
||||
|
||||
function farenheit2celsius($value)
|
||||
|
Reference in New Issue
Block a user