collectionKeys() public static method

public static collectionKeys ( $collection )
Beispiel #1
0
 /**
  * Evaluate an expression and return the last key
  * @return mixed
  */
 public function lastKey()
 {
     $keys = AccessHelper::collectionKeys($this->data);
     if (empty($keys) || end($keys) === false) {
         return null;
     }
     return end($keys);
 }