summaryrefslogtreecommitdiff
path: root/tests/php/phpt/variables/002-get_complex_array.phpt
blob: 716fda9ea3103cfdfa7467547a316981edc9170c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--TEST--
get_complex_array
--SKIPIF--
<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
--FILEEOF--
<?php

/*
function get_complex_array()
{
    return array(
        "a" => 123,
        "b" => 456,
        "c" => array("nested value","example",7)
    );
}
var_export(get_complex_array());
*/
var_export(TestVariables\get_complex_array());


echo PHP_EOL;
--EXPECT--
array (
  'a' => 123,
  'b' => 456,
  'c' => 
  array (
    0 => 'nested value',
    1 => 'example',
    2 => 7,
  ),
)