• 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

Composer Script echo

Display the WooCommerce product price inside a custom function

how to see if database exists with PDO [duplicate]

Generate random username based on full name php

stay with the last 15 elements of an array [duplicate]

Sort a multidimensional array by integer inside of a string value which is two levels down

Using spatie/media-library, how to rename a collection of uploaded files?

Android Volley getParams() method not getting called for JsonObjectRequest

Adding Multiple Custom Post Types in Wordpress

Sentry on Symfony: how to exclude `NotFoundHttpException`

Undefined variable in Laravel 8 project (php 7.4)

Normalize DateInterval in PHP

Chunk and transpose a flat array into rows with a specific number of columns

CodeIgniter 3 is generating a session file on each request, why?

Laravel eloquent update record without loading from database

About Contact Privacy policy Terms and conditions