<?php
echo '<pre>';
var_export($termchildrens);
echo '</pre>';
// view file code.php
// --- Description for file code.php
123 =>
WP_Term::__set_state(array(
'term_id' => 315,
'name' => 'Hokuso Railway',
'slug' => 'hokuso',
'term_group' => 0,
'term_taxonomy_id' => 315,
'taxonomy' => 'property_label',
'description' => '',
'parent' => 0,
'count' => 0,
'filter' => 'raw',
)),
124 =>
WP_Term::__set_state(array(
'term_id' => 316,
'name' => 'Hokuso Railway',
'slug' => 'hokuso-hokuso',
'term_group' => 0,
'term_taxonomy_id' => 316,
'taxonomy' => 'property_label',
'description' => '',
'parent' => 315,
'count' => 0,
'filter' => 'raw',
)),
// --
?>
<?php
echo '<pre>';
var_export($ress);
echo '</pre>';
array (
315 =>
array (
316 =>
array (
0 =>
WP_Term::__set_state(array(
'term_id' => 316,
'name' => 'Hokuso Railway',
'slug' => 'hokuso-hokuso',
'term_group' => 0,
'term_taxonomy_id' => 316,
'taxonomy' => 'property_label',
'description' => '',
'parent' => 315,
'count' => 0,
'filter' => 'raw',
)),
'child' =>
array (
0 =>
WP_Term::__set_state(array(
'term_id' => 892,
'name' => 'Test 1',
'slug' => 'test-1',
'term_group' => 0,
'term_taxonomy_id' => 892,
'taxonomy' => 'property_label',
'description' => '',
'parent' => 316,
'count' => 0,
'filter' => 'raw',
)),
),
),
893 =>
array (
0 =>
WP_Term::__set_state(array(
'term_id' => 893,
'name' => 'Hokuso Railway 2',
'slug' => 'hokuso-railway-2',
'term_group' => 0,
'term_taxonomy_id' => 893,
'taxonomy' => 'property_label',
'description' => '',
'parent' => 315,
'count' => 0,
'filter' => 'raw',
)),
'child' =>
array (
0 =>
WP_Term::__set_state(array(
'term_id' => 894,
'name' => 'Hokuso Railway 3',
'slug' => 'hokuso-railway-3',
'term_group' => 0,
'term_taxonomy_id' => 894,
'taxonomy' => 'property_label',
'description' => '',
'parent' => 893,
'count' => 0,
'filter' => 'raw',
)),
),
),
),
);
?>