Fixed order of $field keys when exporting in PHP

Signed-off-by: Elliot Condon <e@elliotcondon.com>