composer package updates
[openemr.git] / vendor / mpdf / mpdf / src / Utils / Arrays.php
blob808913dd7dd5440f23b4b0b7f0fcee935b37fda6
1 <?php
3 namespace Mpdf\Utils;
5 class Arrays
8 public static function get($array, $key, $default = null)
10 if (is_array($array) && array_key_exists($key, $array)) {
11 return $array[$key];
14 if (func_num_args() < 3) {
15 throw new \InvalidArgumentException(sprintf('Array does not contain key "%s"', $key));
18 return $default;