diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-10-28 18:09:50 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-10-28 18:09:50 +0100 |
commit | a77a2ec58947f5fc7cb4023db3b8f8298e2f01f2 (patch) | |
tree | 0aa5a38a23f8afc49c4c8bc50ad5edd51f4897d2 /tests/test_foreach/code.php | |
parent | 55d47c27247e3cdbd88818c0ba98646ee11fb315 (diff) | |
download | ste-a77a2ec58947f5fc7cb4023db3b8f8298e2f01f2.tar.gz ste-a77a2ec58947f5fc7cb4023db3b8f8298e2f01f2.tar.bz2 ste-a77a2ec58947f5fc7cb4023db3b8f8298e2f01f2.zip |
ste:foreach now has an else clause for empty arrays.
Diffstat (limited to 'tests/test_foreach/code.php')
-rw-r--r-- | tests/test_foreach/code.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_foreach/code.php b/tests/test_foreach/code.php new file mode 100644 index 0000000..380ee69 --- /dev/null +++ b/tests/test_foreach/code.php @@ -0,0 +1,9 @@ +<?php + +function test_func($ste) { + $ste->vars["foo"] = array( + "a" => array("a" => 100, "b" => 200), + "b" => array("a" => 1, "b" => 2), + "c" => array("a" => 42, "b" => 1337) + ); +} |