Can I convert empty strings to NULL with a Codeigniter validation rule? |
@b126,
You should be able to use a PHP function such as isset() (scroll down page to See Also for other suggestions- http://php.net/manual/en/function.isset.php). return isset($value)? null : $value; |
Messages In This Thread |
Can I convert empty strings to NULL with a Codeigniter validation rule? - by b126 - 02-27-2019, 08:40 AM
RE: Can I convert empty strings to NULL with a Codeigniter validation rule? - by php_rocs - 02-27-2019, 01:10 PM
RE: Can I convert empty strings to NULL with a Codeigniter validation rule? - by b126 - 02-27-2019, 01:30 PM
RE: Can I convert empty strings to NULL with a Codeigniter validation rule? - by php_rocs - 02-27-2019, 03:58 PM
RE: Can I convert empty strings to NULL with a Codeigniter validation rule? - by b126 - 02-27-2019, 04:11 PM
RE: Can I convert empty strings to NULL with a Codeigniter validation rule? - by dave friend - 02-28-2019, 12:25 PM
RE: Can I convert empty strings to NULL with a Codeigniter validation rule? - by b126 - 02-28-2019, 12:45 PM
RE: Can I convert empty strings to NULL with a Codeigniter validation rule? - by dave friend - 02-28-2019, 01:39 PM
|