140Part IPHP: The BasicsNote that, unlike commutative addition (Make web site)
140Part IPHP: The BasicsNote that, unlike commutative addition and multiplication, with this shorthand operator itmatters that the new string is added to the right. If you want the new string tacked on to theleft, there s no alternative shorter than: $my_string_var = $new_addition . $my_string_var; Note also that unassigned variables are treated as empty strings for the purposes of concate- nation, so $my_string_varwill end up unchanged if $new_additionhas never been given avalue. The heredoc syntaxIn addition to the single-quote and double-quote syntaxes, PHP offers another way to specifya string, called the heredoc syntax. This syntax turns out to be extremely useful for specifyinglarge chunks of variable-interpolated text, because it spares you from the need to escapeinternal quotes. It is especially useful in creating pages that contain HTML forms. The operator in the heredoc syntax is <<<. What is expected immediately after this is a label(unquoted) that indicates the beginning of a multiline string. PHP will continue including sub- sequent lines into this string until it sees the same label again, beginning a line. The endinglabel may optionally be followed by a semicolon but by nothing else. An example: $my_string_var = <<
If you are in need for cheap and reliable webhost to host your website, we recommend http web server services.