setup tuples for php fields