mirror of
https://github.com/Karaka-Management/Resources.git
synced 2026-01-11 21:38:39 +00:00
28 lines
440 B
PHP
28 lines
440 B
PHP
<?php
|
|
|
|
namespace PayPal\Common;
|
|
|
|
/**
|
|
* Class ArrayUtil
|
|
* Util Class for Arrays
|
|
*
|
|
* @package PayPal\Common
|
|
*/
|
|
class ArrayUtil
|
|
{
|
|
/**
|
|
*
|
|
* @param array $arr
|
|
* @return true if $arr is an associative array
|
|
*/
|
|
public static function isAssocArray(array $arr)
|
|
{
|
|
foreach ($arr as $k => $v) {
|
|
if (is_int($k)) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
}
|