Download src/php/php-src/tests/basic/017.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 211 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/basic/017.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/basic/017.phpt
-
curl -L -o 017.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/basic/017.phpt
211 Bytes
| --TEST-- | |
| POST Method test and arrays - 5 | |
| --POST-- | |
| a[]=1&a[a]=1&a[b]=3 | |
| --FILE-- | |
| var_dump($_POST['a']); | |
| --EXPECT-- | |
| array(3) { | |
| [0]=> | |
| string(1) "1" | |
| ["a"]=> | |
| string(1) "1" | |
| ["b"]=> | |
| string(1) "3" | |
| } | |