Lines Matching refs:input
11 $input = array("red", "green", "blue", "yellow");
12 var_dump (array_splice($input, 2));
13 var_dump ($input);
14 // $input is now array("red", "green")
17 $input = array("red", "green", "blue", "yellow");
18 var_dump (array_splice($input, 2, null));
19 var_dump ($input);
20 // $input is now array("red", "green")
23 $input = array("red", "green", "blue", "yellow");
24 var_dump (array_splice($input, 1, -1));
25 var_dump ($input);
26 // $input is now array("red", "yellow")
29 $input = array("red", "green", "blue", "yellow");
30 var_dump (array_splice($input, 1, count($input), "orange"));
31 var_dump ($input);
32 // $input is now array("red", "orange")
34 $input = array("red", "green", "blue", "yellow");
35 var_dump (array_splice($input, -1, 1, array("black", "maroon")));
36 var_dump ($input);
37 // $input is now array("red", "green",
41 $input = array("red", "green", "blue", "yellow");
42 var_dump (array_splice($input, 3, 0, "purple"));
43 var_dump ($input);
44 // $input is now array("red", "green",