Created revert.php

Added reverse functionality (changes "[]" to "array()")