want to know something about xml [duplicate]




This question already has an answer here:




i am learning xml and using xml with php.i am little confusing about a operator(<<<) which is used in program here the program



<?php
$xmldata = <<<data
<songs>
<song dateplayed="2011-07-24 19:40:26">
<title>I left my heart on Europa</title>
<artist>Ship of Nomads</artist>
</song>
<song dateplayed="2011-07-24 19:27:42">
<title>Oh Ganymede</title>
<artist>Beefachanga</artist>
</song>
<song dateplayed="2011-07-24 19:23:50">
<title>Kallichore</title>
<artist>Jewitt K. Sheppard</artist>
</song>
</songs>
data;

?>


why i need <<< after equals(Xmldata= <<


No comments:

Post a Comment