[clug-progsig] php new line not working
joshua gatcke
joshua at visua.ca
Mon Feb 5 14:51:33 PST 2007
Hello All,
I am trying to create a newline in the source of an xml file I am
creating with PHP, however, "\n" is being output. Here is the code.
Not sure why this is happening.
Thanks in advance,
<?php echo '</?xml version="1.0" encoding="iso-8859-1"/?>'; ?>
<?php foreach($vars as $post): ?>
<post>
<?php foreach($post as $key => $value):?>
<?php echo '<'.$key.'>'.$value.'</'.$key.'>\n';?>
<?php endforeach;?>
</post>
<?php endforeach;?>
<pre>
<?php //print_r($data);?>
</pre>
More information about the clug-progsig
mailing list