diff --git a/language/types/string.xml b/language/types/string.xml index 2013b079d4c5..56296a24b68b 100644 --- a/language/types/string.xml +++ b/language/types/string.xml @@ -216,8 +216,9 @@ echo 'Variables do not $expand $either', PHP_EOL; - The closing identifier may be indented by space or tab, in which case - the indentation will be stripped from all lines in the doc string. + The closing identifier may be indented with spaces or tabs. Whitespace + equal to the closing identifier's indentation is then removed from the + beginning of every line in the doc string. Prior to PHP 7.3.0, the closing identifier must begin in the first column of the line. @@ -233,20 +234,20 @@ echo 'Variables do not $expand $either', PHP_EOL; &example.outputs.73; @@ -256,9 +257,9 @@ echo << @@ -308,23 +309,23 @@ Parse error: Invalid body indentation level (expecting an indentation level of a // different indentation for body (spaces) and ending marker (tabs) { - echo <<