...

View Full Version : can a string be made out of this....?



funnygiggler
05-03-2006, 07:51 PM
i think im always going to be classed as a novice at php....

but anyway... could someone please help me out with this



print <<<EndXMLBlock
<story>
<name>$sTitle</name> <br />
</story>
EndXMLBlock;


the above is a piece of code that prints the bit inbetween with the structure and tags included! however... im wondering is it possible to put that into a string which can be called at some point?

GJay
05-03-2006, 09:34 PM
$string='<story>
<name>$sTitle</name> <br />
</story>';



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum