Last active
October 12, 2015 03:11
-
-
Save ergunozyurt/94f32b32a1aa018c0b76 to your computer and use it in GitHub Desktop.
Revisions
-
ergunozyurt revised this gist
Oct 12, 2015 . No changes.There are no files selected for viewing
-
ergunozyurt created this gist
Oct 12, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ function searchArrayForKey($search,$array) { $foundArray= array(); foreach ($array as $key => $value) { if($key === $search) { $foundArray = $value; break; } else { if(is_array($value)){ return searchSubArray($search,$value); } } } return $foundArray; }