Search the Community
Showing results for tags 'print'.
"will make it easier to refer to the variables when printing them" When who is printing them? the browser? and p 14 "To display the value of a variable, you can print the variable without quotation marks:" Meaning, I can ask the browser to print the variable? Or, I can type the variable (key) the variable w/o quotation marks? and then what do you mean by "you can print the variable without quotation marks" I mean-
This statement works fine as it is echo '<p>'.$query_row['name'].'</p>'; But how would it be possible to turn '<p>'.$query_row['name'].'</p>' into a variable that could be called back by a print or echo statement ? A not working example $myvar = '<p>'.$query_row['name'].'</p>'; echo $myvar; Does anyone know how this is possible?
Hi, I'm new to this forum and new to PHP so forgive me if this is a silly question. I was just going through the first chapter and came upon the print language construct. I did some looking around when it was said that echo was another option to achieve the same result and wanted to find out why one would use print over echo or vise versa. I came upon a number of articles that said that echo could be insignificantly faster than print because it doesn't return anything whereas print returns a 1. Moving along a little bit I came to the point in chapter 1 where we have to escape some double