The line should comprise the said number of fields(in
the eg case - 4).So what I am also checking for,is the
number of fields returned on the 'split' & yeah I am
taking care of the possibility of receiving an empty
$line and/or empty field/fields. I think the two checks
1.Fields returned & 2. delimiter presence should be good
enough method to determine if the $line is fine,right?
In reply to Re: Re: Input validation
by pacman
in thread Input validation
by pacman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |