mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Make the comment more obvious - reported by Ross Masters
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@265288 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
75ee25494f
commit
39273a8e01
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<!-- $Revision: 1.14 $ -->
|
||||
<sect1 xml:id="language.types.string">
|
||||
<title>Strings</title>
|
||||
|
||||
|
@ -459,7 +459,7 @@ EOT;
|
|||
<?php
|
||||
$beer = 'Heineken';
|
||||
echo "$beer's taste is great"; // works; "'" is an invalid character for variable names
|
||||
echo "He drank some $beers"; // won't work; 's' is a valid character for variable names
|
||||
echo "He drank some $beers"; // won't work; 's' is a valid character for variable names but the variable is "$beer"
|
||||
echo "He drank some ${beer}s"; // works
|
||||
echo "He drank some {$beer}s"; // works
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue