PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
One quick note that caused me hours of frustration... the ending delimiter CANNOT BE INDENTED... It took me hours of searching before I accidentally figured it out
nickvd wrote:One quick note that caused me hours of frustration... the ending delimiter CANNOT BE INDENTED... It took me hours of searching before I accidentally figured it out
To me that is a reason not to use it in and of itself. Spose there is some reason why it has be like that though. Anyway, if you have a string that long, there is probably a better way to store it.
nickvd wrote:One quick note that caused me hours of frustration... the ending delimiter CANNOT BE INDENTED... It took me hours of searching before I accidentally figured it out
To me that is a reason not to use it in and of itself. Spose there is some reason why it has be like that though. Anyway, if you have a string that long, there is probably a better way to store it.
Indeed, I have never even used heredoc before for that exact reason.