Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to use validations in php?(codelgniter)

Answers were Sorted based on User's Feedback



How to use validations in php?(codelgniter)..

Answer / solutio magister

Validations can be done through JAVASCRIPT. Since
JavaScript is a browser side scripting language validations
can be done by avoiding the processing time in server side.

Is This Answer Correct ?    13 Yes 3 No

How to use validations in php?(codelgniter)..

Answer / vileye

There are various ways to validate a data in php. It depends
on what you want to validate. The various validations are as
follows:

FILTER_VALIDATE_INT Validate value as integer, optionally
from the specified range
FILTER_VALIDATE_BOOLEAN Return TRUE for "1", "true", "on"
and "yes", FALSE for "0", "false", "off", "no", and "", NULL
otherwise
FILTER_VALIDATE_FLOAT Validate value as float
FILTER_VALIDATE_REGEXP Validate value against regexp, a
Perl-compatible regular expression
FILTER_VALIDATE_URL Validate value as URL, optionally with
required components
FILTER_VALIDATE_EMAIL Validate value as e-mail
FILTER_VALIDATE_IP Validate value as IP address, optionally
only IPv4 or IPv6 or not from private or reserved ranges

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More PHP Interview Questions

What are the differences between PHP3 and PHP4 and PHP5? what is the current stable version of PHP?

0 Answers  


What are computer variables?

0 Answers  


For image work which library is used in php?

0 Answers  


How do you call a constructor for a parent class?

0 Answers  


Is laravel better than codeigniter?

0 Answers  


How to check a key exist in an array?

0 Answers  


What is php artisan serve?

0 Answers  


Declare a new variable in php equal to the number 3;

0 Answers  


How easy is php?

0 Answers  


In PHP, fgets() is used to read a file one line at a time. State Whether True or False?

0 Answers  


What is overriding in php?

0 Answers  


Is php an array?

0 Answers  


Categories