Hi!
I guess this is an idiotic Q but.... I have a statment which is too big if i want to continue in the next line like give a carriage return wat should I do ... I mean suppose

echo "jkhsd lskdhf sdlkfjl asdflksajdflksdj flsdkjf asldkjfas ldkfjasldkjf lksjdf";

TO

echo "alksdhflkasdjflaksdjf ;ksdj alsdkfj asdlkfj
ksjdfhjksadhf sdlkfhs";

like we use ... in VB

Thanks.

    you could do this:

    $statement .= "first string<br>";
    $statement .= "second string<br>";
    $statement .= "and so on...";
    
    echo $statement ;
    

    or this

    echo "first string<br>";
    echo "second string<br>";
    echo "and so on...";
    

    this will print out the following:

    first string
    second string
    and so on...

    hope this helps?

      Your second echo statement is just fine. PHP looks for the next semi-colon and considers that a new line.

        Thanks All, That helps Merve, What u told is true...

          oh yeah thats right.

          I wasnt sure if you were talking about html output, or just making your code easier to read so I tried to cover all of it

          :-)

            Write a Reply...