Hi. Thanks for reading.
How does one select a certain range of arrays without having to write them all out? I am wondering, how would one go about the following?
So we have the following indexed arrays:
$array[0] = "A";
$array[1] = "B";
$array[2] = "C";
$array[3] = "D";
i'd like this fantasy if statement to work:
if ($array[range 0-3] != A) print "blah blah blah";
elseif ($array[range 1-2] != A) print" do de do ";
of course me putting the range inside the brakets is an absolute violation and won't work, how would i go about coding this properly?
Thanks
Dominic Son