as you know, when you use the echo or print function to output html code, its necessary to escape all the quotes with a \ before any quote so php codes doesnt get messed up. Howeveri have seen some cases where this is not necessary because after the print or echo strings there is a CUT <<< like thing that appears to allow you to include the html code as is, without modifying the quotes. Im not really sure about this so i wanted to ask you if you can tell me more specifically whats that CUT <<< for and if it really can help you deprecate the use of back slashes when you echo html with quotes within.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
The closing "word" and terminating semi-colon must be on a line by itself with no leading white-space of any kind.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Sorry, i have another question. What if i want to include a variable within that echoed html? it should work right? its just that im not defining the variable right
i want the variable to call the include function to insert that html bit, but it does it not in the echoed code, but where im supposed to be defining the variable. Could you tell me please how to define the variable as an include?
Most likely the problem is that include() does not return anything, unless you happen to have a return() statement being executed within the main body of the included file.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks