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!";
}
 

+ Answer
+ Report
Total Preview: 845

Copyright © 2024. Powered by Intellect Software Ltd