示例#1
0
文件: CCArr.php 项目: clancats/core
 /**
  * test the CCArr isset
  */
 public function testArrayHasItem()
 {
     /*
      * get string
      */
     $this->assertTrue(CCArr::has('string', $this->test_array));
     /*
      * get not existing
      */
     $this->assertFalse(CCArr::has('not.existing', $this->test_array));
 }
示例#2
0
 /**
  * check if data exsists for key
  *
  * @param string 	$key
  * @return mixed
  */
 public function has($key)
 {
     return CCArr::has($key, $this->_data);
 }