please also add a PHP and XML example.