PHP CSV parser with callbacks