Merge pull request #1433 from totten/master-validate-messages
[civicrm-core.git] / CRM / Utils / Array.php
index b0ebe5fac057f4795136a15d83a688d8e7f68468..b685b9482fa5b09a70c57b65b45d31cf99fe72e4 100644 (file)
@@ -39,13 +39,12 @@ class CRM_Utils_Array {
    *
    * @access public
    *
-   * @param array  $list  the array to be searched
    * @param string $key   the key value
+   * @param array $list  the array to be searched
+   * @param mixed $default
    *
-   * @return value if exists else null
+   * @return mixed value if exists else $default
    * @static
-   * @access public
-   *
    */
   static function value($key, $list, $default = NULL) {
     if (is_array($list)) {