File: xml.php

package info (click to toggle)
phpdox 0.8.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,376 kB
  • ctags: 2,505
  • sloc: xml: 51,137; php: 8,771; makefile: 19
file content (12 lines) | stat: -rw-r--r-- 222 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
<?php

 /**
  * Pipe the output of this file to xmllint:
  *
  * e.g.  php xml.php | xmllint -
  */

 $x = chr(0xA0) . chr(0x7B) . chr(0x40) . chr(0x69);
 echo '<?xml version="1.0" encoding="utf-8" ?><r>' . $x . '</r>';