This problem is a bit strange. Why is showed "Is not null", if the value sent is null? Any reason for that?
Parametersapplication/x-www-form-urlencoded
lists_owned null
Source
lists_owned=null
<?php
$lists_owned = $_POST['lists_owned'];
var_dump($lists_owned); // string(4) "null"
if(!is_null($_POST['lists_owned'])) {
echo "Is not null"; I see this echo
}
?>
thanks
$_POST['lists_owned']is set before accessing it :$lists_owned = isset($_POST['lists_owned']) ? $_POST['lists_owned'] : null;and only use the$lists_ownedvariable after that, it's useless to set $lists_owned and to never use it.