Jump to content

[SOLVED] EOT


jaymc

Recommended Posts

I use EOT a lot to save adding slashes when I want to use quotes etc, however, I have ran into an annoying problem

 

check this

 

$number = 3;

 

$cheese = <<<EOT

 

I like to use "quotes" without slashing them, but I can do things like adding

$number+1 should come out as 4, but you cant execute code inside of this

 

Am i missing something?

EOT;

Link to comment
https://forums.phpfreaks.com/topic/108454-solved-eot/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.