lauthiamkok — 2011-03-24T19:52:43-04:00 — #1
How can I return NULL with
filter_input when the input is empty?
$title = filter_input(INPUT_POST, 'title');
string '' (length=0)
but I want,
chris_upjohn — 2011-03-24T22:30:35-04:00 — #2
You can only get NULL as the return value if the $variable is not set or fails to be filtered.
lauthiamkok — 2011-03-24T22:42:21-04:00 — #3
got it thank you. I think I have write a function or a couple of extra lines to return null for my case. thanks.