From 5e7700109c39d46138fe40530e02cf8610a8d982 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Tue, 29 Dec 2015 06:51:50 -0800 Subject: [PATCH] Ensure examples are fully compatible with PHP 5.3 --- examples/tree.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/tree.php b/examples/tree.php index dacde7f..068c271 100644 --- a/examples/tree.php +++ b/examples/tree.php @@ -2,26 +2,26 @@ require_once 'common.php'; -$data = [ - 'Test' => [ - 'Something Cool' => [ +$data = array( + 'Test' => array( + 'Something Cool' => array( 'This is a 3rd layer', - ], + ), 'This is a 2nd layer', - ], - 'Other test' => [ - 'This is awesome' => [ + ), + 'Other test' => array( + 'This is awesome' => array( 'This is also cool', 'This is even cooler', - 'Wow like what is this' => [ + 'Wow like what is this' => array( 'Awesome eh?', - 'Totally' => [ + 'Totally' => array( 'Yep!' - ], - ], - ], - ], -]; + ), + ), + ), + ), +); printf("ASCII:\n");