Skip to content

Commit

Permalink
is_assoc_array
Browse files Browse the repository at this point in the history
  • Loading branch information
shirne committed Jul 13, 2024
1 parent a11d0ef commit 8edc158
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/application/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -1315,6 +1315,11 @@ function array_min($arr, $column)
return min($data);
}

function is_assoc_array($array)
{
return array_keys($array) !== range(0, count($array) - 1);
}

function encode_password($pass, $salt = '')
{
return md5(md5($pass) . $salt);
Expand Down

0 comments on commit 8edc158

Please sign in to comment.