示例#1
0
 function array_flatten(array $set, $path = null)
 {
     return Hash::flatten($set, $path);
 }
示例#2
0
 /**
  * Test that flatten() will flatten a multi-dimension array into a single-dimension.
  */
 public function testFlatten()
 {
     $match = $this->collapsed;
     $match['empty'] = null;
     $this->assertEquals($match, Hash::flatten($this->expanded));
 }