• 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

Transpose and flatten multiple rows of array data [duplicate]

Store multiple fields in JSON column (Nova CMS)

ORA-12546: TNS:permission denied error connection to remote oracle server

Select option menu read from database and use it's values

Make certain characters of a word from string bold

Get keys from associative array [duplicate]

What is the difference between client-side and server-side programming?

calling server using nusoap with complextype

woocommerce get_order_report_data to show order_item_id

if statement inside concatenation

301 Redirect to remove query string on homepage only

Execute only one time and then wait set period of time before executing again

Cross-Origin Resource Sharing (CORS) witth Laravel and Vuejs

Composer Warning: openssl extension is missing. How to enable in WAMP

Minimum order amount except for specific shipping method in WooCommerce

About Contact Privacy policy Terms and conditions