Skip to content

Instantly share code, notes, and snippets.

@rimantoro
rimantoro / arr_recursive_by_key.php
Created December 8, 2016 12:06
PHP recursive search based on key
<?php
$data = [
"key1" => [
"key11" => "Ini level 1.1",
"key12" => [
"key121" => "Ini level 1.2.1",
"key123" => "Ini level 1.2.3"
],
],