xref: /PHP-5.4/tests/basic/011.phpt (revision febee112)
1--TEST--
2Testing $argc and $argv handling (GET)
3--INI--
4register_argc_argv=1
5--GET--
6ab+cd+ef+123+test
7--FILE--
8<?php
9$argc = $_SERVER['argc'];
10$argv = $_SERVER['argv'];
11
12for ($i=0; $i<$argc; $i++) {
13	echo "$i: ".$argv[$i]."\n";
14}
15
16?>
17--EXPECT--
180: ab
191: cd
202: ef
213: 123
224: test
23