Skip to content

Commit 9e6c341

Browse files
authored
Replace deprecated ${var} string interpolations with {$var} (#3179)
1 parent 7688769 commit 9e6c341

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

faq/html.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ if (isset($_GET['width']) AND isset($_GET['height'])) {
315315
// -- post variables will need to handled differently)
316316
317317
echo "<script language='javascript'>\n";
318-
echo " location.href=\"${_SERVER['SCRIPT_NAME']}?${_SERVER['QUERY_STRING']}"
318+
echo " location.href=\"{$_SERVER['SCRIPT_NAME']}?{$_SERVER['QUERY_STRING']}"
319319
. "&width=\" + screen.width + \"&height=\" + screen.height;\n";
320320
echo "</script>\n";
321321
exit();

reference/mysql_xdevapi/examples.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ array(4) {
108108
<?php
109109
$result = $collection->find()->execute();
110110
foreach ($result as $doc) {
111-
echo "${doc["name"]} is a ${doc["job"]}.\n";
111+
echo "{$doc["name"]} is a {$doc["job"]}.\n";
112112
}
113113
?>
114114
]]>

reference/pgsql/functions/pg-send-query-params.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@
101101
// Using parameters. Note that it is not necessary to quote or escape
102102
// the parameter.
103103
pg_send_query_params($dbconn, 'select count(*) from authors where city = $1', array('Perth'));
104-
104+
105105
// Compare against basic pg_send_query usage
106106
$str = pg_escape_string('Perth');
107-
pg_send_query($dbconn, "select count(*) from authors where city = '${str}'");
107+
pg_send_query($dbconn, "select count(*) from authors where city = '{$str}'");
108108
?>
109109
]]>
110110
</programlisting>

0 commit comments

Comments
 (0)