/** * 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)); }
/** * check if data exsists for key * * @param string $key * @return mixed */ public function has($key) { return CCArr::has($key, $this->_data); }