Question:Which function is used to validate an IP address?
A
if(!$this->input->valid_ip($ip)){ echo "Not a valid IP"; }else{ echo "Valid IP!"; }B
if(!$this->input->ip_address($ip)){ echo "Not a valid IP"; }else{ echo "Valid IP!"; }C
if($this->input->valid_ip($ip)){ echo "Not a valid IP"; }else{ echo "Valid IP!"; }D
if(!$this->load->valid_ip($ip)){ echo "Not a valid IP"; }else{ echo "Valid IP!"; }
+ AnswerA
+ Report