Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2006
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    can a string be made out of this....?

    i think im always going to be classed as a novice at php....

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

    PHP Code:
    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?

  • #2
    Senior Coder
    Join Date
    Sep 2005
    Posts
    1,791
    Thanks
    5
    Thanked 36 Times in 35 Posts
    PHP Code:
    $string='<story> 
            <name>$sTitle</name> <br /> 
        </story>'



  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •