I have an array in PHP with some variables for example (1,2,3,4,5,6,7) I want to get two separate arrays one with all the variables lower than $idusuario
(which might be 2, for example), for example the array 1
would have only one value "1" and array 2
would have "3,4,5,6,7".
PS: My php variables are:
$arrayfinal[] --> the array I want to divide
$idusuario --> the variable which separates both arrays