getField() 공개 메소드

Get a field
public getField ( string $name ) : mixed
$name string
리턴 mixed
예제 #1
0
 public function testSetAndGetFields()
 {
     $c = new Curl('http://www.popphp.org/version', array(CURLOPT_HEADER => false, CURLOPT_RETURNTRANSFER => true));
     $c->setFields(array('name' => 'Test'));
     $c->setField('email', '*****@*****.**');
     $this->assertEquals('Test', $c->getField('name'));
     $this->assertEquals(2, count($c->getFields()));
 }