I want to achieve this
foreach($spacecount as $x => $x_value) {
if($spacecount[$x+1] < $spacecount[$x+2] ) {
echo $spacecount[$x];
}
}
like we can do it in for loop, but i also want to use its key when needed. how can I perform it ?
The array looks like
Array ( [ Tables] => 5
[Home] => 0
[ Wallet] => 5
[Designer] => 0
)
it contains whitespaces in the key text