How do I get a specific value in a multidimensional array using php?

To get specific value in looping: $pnotifyArr$j'Notice_type'; $pnotifyArr$k'Notice_title'; example: foreach($pnotifyArr as $key=>$val) { if($pnotifyArr$key'Notice_type' == $pnotifyArr$key'Notice_title') { $pnotifyArr$keyXXX = ''; } } To Remove Empty Key: foreach($pnotifyArr as $key=>$val) { if($pnotifyArr$key'Notice_type' == $pnotifyArr$key'Notice_title') { $pnotifyArr$keyXXX = ''; } if (is_null($val)) { unset($pnotifyArr$key); } } Then try print_r print_r($pnotifyArr).

It showa error: Notice: Undefined offset: 1 in C:\xampp\htdocs\sys\includes\toNotify. Php on line 235 – shobana Dec 7 at 3:00 Edit my answer with sample usage. – Zulkhaery Basrul Dec 7 at 3:09 Ya I got it... Simple and works good.... – shobana Dec 7 at 3:22 stackoverflow.Com/questions/8200464/how-do-i-remove-a-specific-key-in-an-array-using-php.... Can I do this to remove my empty spaces from the array.... how do I do it?

– shobana Dec 7 at 3:31 Yes.. check my answer, added example how to remove empty array – Zulkhaery Basrul Dec 7 at 3:48.

Foreach($pnotifyArr as $child_array) { echo $child_array'Notice_type'; echo $child_array'Notice_title'; }.

Help me... – shobana Dec 7 at 2:33 No if you do that it returns a single value but it will be replaced for each array in the loop, so if you are using those variables in the loop you are golden – David Nguyen Dec 7 at 2:38 Ok let me try it... – shobana Dec 7 at 2:39.

Function array_uniquecolumn($arr) { $temp_array = array(); $temp_array1 = array(); $final_array = array(); foreach ($arr as $key => $value) { $temp_array = $value"Notice_type". $value"Notice_title"; } //print_r ($temp_array); $temp_array = array_unique($temp_array); $temp_array1 = array_keys($temp_array); //print_r ($temp_array1); foreach ($temp_array1 as $key => $value) { $final_array = $arr$value; } return ($final_array); } //print_r( array_uniquecolumn($pnotifyArr)); I get perfect result from this function......

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send