Download src/php/php-src/tests/lang/040.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 131 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/lang/040.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/lang/040.phpt
-
curl -L -o 040.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/lang/040.phpt
131 Bytes
| --TEST-- | |
| foreach into array | |
| --FILE-- | |
| $a = array(0,1); | |
| $b[0]=2; | |
| foreach($a as $b[0]) { | |
| echo $b[0]."\n"; | |
| } | |
| --EXPECT-- | |
| 0 | |
| 1 | |