fortnox007 Posted January 19, 2011 Share Posted January 19, 2011 hi all, does anyone know the name of the following its a way to make a huge string than can have variables in it. look a bit like this but couldnt remember the right syntax, nor the name so was kinda hard to look on google. ABC>>> some stuff inside ABC; Quote Link to comment Share on other sites More sharing options...
the182guy Posted January 19, 2011 Share Posted January 19, 2011 It's $something = ABC<<< some text ABC; http://uk2.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc Quote Link to comment Share on other sites More sharing options...
fortnox007 Posted January 19, 2011 Author Share Posted January 19, 2011 Cool thanks m8, do you maybe know then name of it so i can remember is better. I have it on the tip of my tongue lol Quote Link to comment Share on other sites More sharing options...
the182guy Posted January 19, 2011 Share Posted January 19, 2011 It's called Heredoc, take a look at the link in my edit. Quote Link to comment Share on other sites More sharing options...
fortnox007 Posted January 19, 2011 Author Share Posted January 19, 2011 Thanks alot mate, such a weird name for me cheers!! -edit for the people that wanted to know what I was trying to use it for: I use it to quickly insert all html elements so i can fire my css at it while keeping my html markup clean: http://snipplr.com/view.php?codeview&id=8121 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.