Lines Matching refs:input
6 * proto array array_splice(array input, int offset [, int length [, array replacement]])
12 $input = array("red", "green", "blue", "yellow");
13 var_dump (array_splice($input, 2));
14 var_dump ($input);
15 // $input is now array("red", "green")
18 $input = array("red", "green", "blue", "yellow");
19 var_dump (array_splice($input, 1, -1));
20 var_dump ($input);
21 // $input is now array("red", "yellow")
24 $input = array("red", "green", "blue", "yellow");
25 var_dump (array_splice($input, 1, count($input), "orange"));
26 var_dump ($input);
27 // $input is now array("red", "orange")
29 $input = array("red", "green", "blue", "yellow");
30 var_dump (array_splice($input, -1, 1, array("black", "maroon")));
31 var_dump ($input);
32 // $input is now array("red", "green",
36 $input = array("red", "green", "blue", "yellow");
37 var_dump (array_splice($input, 3, 0, "purple"));
38 var_dump ($input);
39 // $input is now array("red", "green",