php set default value if null code example
Example: php assign value to variable with default
$default_carat_min = $_COOKIE["diamond-search_caratMin"] ?: "0.25";
$default_carat_min = $_COOKIE["diamond-search_caratMin"] ?: "0.25";