• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

php echo xml documents with header

phpxml


PHP Snippet 1:

<?php header("Content-type: text/xml"); ?>
<?php
    $xml="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";

PHP Snippet 2:

<?php 
    header("Content-type: text/xml"); 
    $xml="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";

PHP Snippet 3:

echo '';print_r($output);echo '';die;

Related Snippets

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

"There is no active transaction" when refreshing database in Laravel 8.0 test

How to write PHP in XSLT

PHP mail function is sending blank message body

How to Display Data in Yajra Datatables Laravel 7?

PHP echo values of all sub keys [duplicate]

How to map the two arrays with a duplicate value?

PHPUnit gives error: Target [IlluminateContractsViewFactory] is not instantiable

RuntimeException: Unable to create the cache directory (/var/www/sonata/app/cache/dev)

How can I easily switch between PHP versions on Mac OSX?

Sum array values

Sort multidimensional array by column value within a column

Unable to Edit config.inc.php

How to send image,audio or video through the WhatsApp API - PHP

Login if user is active using Laravel Breeze

About Contact Privacy policy Terms and conditions