Jump to content

simple heredoc help please


Monkuar

Recommended Posts

 

echo <<<L

 

<a href='$indexedhelp.php?view=39'>hello</a>

 

 

 

 

L;

 

 

 

I need it to be like this:

 

 

echo <<<L

 

<a href='$indexedhelp.php?view=39'>hello</a>

 

 

 

 

L;

 

 

I want to use $indexed as a variable, but it actually joins with the word help, how do I fix?

 

I want only indexed to be the variable,

 

Thanks!!

Link to comment
https://forums.phpfreaks.com/topic/266569-simple-heredoc-help-please/
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.