In ASP, there is a way to have all the code printed nicely when looking at the source code in your browser by using a vbcrlf (VB Control Line Feed). This way, the source code can be seen in different lines and not as one or more extremely long lines. Is there an equivalent of this in PHP?

Oh, and can I just say that I think this forum is excellent, it works extremely well and the people here are friendly and helpful!

Joyce

    Hi Sarah,

    I am not sure if this is what I mean: it sure looks a lot more difficult than the simple vbcrlf I use after every line in ASP...
    All I want is that the HTML output of my PHP code is easily readable when looking at the source code. So I won't have to scroll all the way to the right all the time. There must be something easier than a function for this, I hope? :-)

    Joyce

      ASP: vbCRLF
      PHP: "\r\n" {This also works for Javascript, C, Perl etc...}

        Write a Reply...