Update class.input.php

Added the function array_to_obj.