• 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

Failing validation doesn't stop code execution in livewire component

Combining a describing and one array with data

Login if user is active using Laravel Breeze

Store / Website Column in Magento 2 Admin Grid - Custom Module

yii2 and mssql insert varbinary into model

backup files to google drive using PHP

Fatal error: Array callback has to contain indices 0 and 1

Error converting docx to pdf using Unoconv

How to render html from a @foreach loop in a textarea

Boolean assignment operators in PHP

Laravel - How to properly generate unique slugs from article titles?

How to make dot match newline characters using regular expressions

Laravel set default language not working

How do I loop through an MS SQL database with VB.NET?

Laravel/docker-compose/redis - Class 'Redis' not found

About Contact Privacy policy Terms and conditions