* You already understand the fundamentals of object-oriented PHP.

	* You've verified that your PHP environment passes the SDK Compatibility Test.

	* You've already added your credentials to your config.inc.php file, as per the
	  instructions in the Getting Started Guide.

	TO RUN:
	* Run this file on your web server by loading it in your browser, OR...
	* Run this file from the command line with `php cli-r53_change_rrset-MX.php`.
*/
/*%******************************************************************************************%*/
// SETUP
// Enable full-blown error reporting. http://twitter.com/rasmus/status/7448448829
error_reporting(-1);
// Set HTML headers
header("Content-type: text/html; charset=utf-8");
// Include the SDK
require_once '../../sdk.class.php';
/*%******************************************************************************************%*/
// CHANGE RESOURCE RECORD SETS
$route53 = new AmazonRoute53();
// You should replace this with a real Zone ID
$zone_id = 'Z1PA6795UKMFR9';
// Sample request XML: http://docs.amazonwebservices.com/Route53/latest/APIReference/API_ChangeResourceRecordSets.html
$change_batch = array('Comment' => 'This change creates an MX record for example.com. (zone apex) with multiple ResourceRecord and Value.', 'Changes' => array(array('Action' => 'CREATE', 'ResourceRecordSet' => array('Name' => 'example.com.', 'Type' => 'MX', 'TTL' => 3600, 'ResourceRecords' => array(array('ResourceRecord' => array('Value' => '10 mx-1.domain.com.')), array('ResourceRecord' => array('Value' => '20 mx-2.domain.com.')), array('ResourceRecord' => array('Value' => '30 mx-3.domain.com.')))))));
// Send request!
$response = $route53->change_rrset($zone_id, $change_batch);
// Display
print_r($response);