Skip to content

Commit

Permalink
Merge pull request #92 from wp-cli/80-php-53-compat
Browse files Browse the repository at this point in the history
Ensure examples are fully compatible with PHP 5.3
  • Loading branch information
danielbachhuber committed Dec 29, 2015
2 parents 7e124ed + 5e77001 commit c6f72ea
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions examples/tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit c6f72ea

Please sign in to comment.