Here i have one array in that array i want to find not null values and display in frond end ,suppose in this array all key values in null means i want to display all values are null,suppose any one of the key is not null means i want to display what is that value
<?php
$array = array('a' => '','b' => 'Kani' , 'c' => '', 'd' => 'Raja');
if (in_array(null, $array)) {
echo "There are null values.";
}else{
echo "Not Null";
}
?>
Here key a and d is not null so i want take this key value like Kani and Raja
nullvalues but some empty strings.