CodeIgniter Forums
Special php operator doesn't work ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Special php operator doesn't work ? (/showthread.php?tid=9890)



Special php operator doesn't work ? - El Forum - 07-11-2008

[eluser]CARP[/eluser]
Hi guys
I'm kinda used to insert some html code inside the <<< operator, but I've realized this operator doesn't work with CI

I have the following function inside a library

Code:
function start_editor($path) {
    $html_return = <<<END_OF_HTML
    [removed]
    [removed]
    [removed]
    [removed]
    END_OF_HTML;

    return $html_return;
}

but CI seems not to like this way... Is there an alternative?
Thanks,


Special php operator doesn't work ? - El Forum - 07-11-2008

[eluser]xpix[/eluser]
single quotes?

won't work with javascript


Special php operator doesn't work ? - El Forum - 07-11-2008

[eluser]Seppo[/eluser]
CI can't change that...
You must have no white space before ending it, so...
Code:
$html_return = <<<END_OF_HTML
    [removed]
    [removed]
    [removed]
    [removed]
END_OF_HTML;



Special php operator doesn't work ? - El Forum - 07-11-2008

[eluser]CARP[/eluser]
Awesome!
Thanks Seba!