I was just wondering how I can get the content of a variable starting from the last value instead of the first ( using foreach),
$variable = [1,2,3,4];
how can I print 4 then 3 and so on (if the size of the variable in unknown, is it possible to get the last value first).
thanks