• 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

The difference when using if statement true === something() vs something() === true [duplicate]

Object of class stdClass could not be converted to string error

Laravel insert dynamic input values with radio button

How to get variable from JavaScript to PHP [duplicate]

how to prevent float variables displaying as scientific notation when printing [duplicate]

Facebook SDK error: Cross-site request forgery validation failed. Required param "state" missing from persistent data

Laravel after login Two factor not working

Show only featured products in Woocommerce shop page

Symfony autowiring issues since docker update

PHP my timezone is no setting up in PHP.ini File in xampp

How to map the two arrays with a duplicate value?

Laravel update hasMany relationship using saveMany

Shopify password update using Shopify API

PHP AWS Cognito 'Error executing "SignUp" : ResourceNotFoundException : User pool client XXXX does not exist

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

About Contact Privacy policy Terms and conditions