Commit 5e9c57543870f2e6840c89313b37486ab057674b

Golmote 2018-03-03T21:30:42

PHP: Update example with string interpolation

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/examples/prism-php.html b/examples/prism-php.html
index a5a2af5..3938a71 100644
--- a/examples/prism-php.html
+++ b/examples/prism-php.html
@@ -53,6 +53,10 @@ function gen_one_to_three() {
 } ?>
 &lt;/div></code></pre>
 
+<h2>String interpolation</h2>
+<pre><code>$str = "This is $great!";
+$foobar = "{${$foo->bar()}}";</code></pre>
+
 <h2>Known failures</h2>
 <p>There are certain edge cases where Prism will fail.
 	There are always such cases in every regex-based syntax highlighter.