Files
luos/workflow/engine/src/ProcessMaker/Util/ArrayUtil.php

16 lines
318 B
PHP
Raw Normal View History

2014-02-20 10:54:49 -04:00
<?php
namespace ProcessMaker\Util;
class ArrayUtil
{
public static function boolToIntValues($array)
{
array_walk($array, function (&$v) {
if ($v === false) $v = 0;
elseif ($v === true) $v = 1;
elseif ($v === null) $v = 0;
});
return $array;
}
}