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; Link to comment https://forums.phpfreaks.com/topic/224980-i-just-cant-remember-the-name/ 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 Link to comment https://forums.phpfreaks.com/topic/224980-i-just-cant-remember-the-name/#findComment-1162004 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 Link to comment https://forums.phpfreaks.com/topic/224980-i-just-cant-remember-the-name/#findComment-1162006 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. Link to comment https://forums.phpfreaks.com/topic/224980-i-just-cant-remember-the-name/#findComment-1162007 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 Link to comment https://forums.phpfreaks.com/topic/224980-i-just-cant-remember-the-name/#findComment-1162008 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.