• 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

PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: no such host known

get data-value with variable value

How can i update or reset my password without entering email field in laravel-8?

How to submit the custom form data in database in WordPress without plugin using ajax?

Laravel query builder binding parameters more than once

laravel MVC execution flow

How to find the date a user created their Google account

get folder directory from input type file - PHP

PHP Deprecated issue when running artisan command

Laravel whole batch is cancelled if one Job fails

Laravel unique validation on multiple columns

Yii2 redirecting to previous page after login

How to remove from a multidimensional array all duplicate elements including the original?

PHPSpreadsheet - How Do I Use Auto Migration Tool

woocommerce get_order_report_data to show order_item_id

About Contact Privacy policy Terms and conditions