Add a utility function for creating the PHP array used