Skip to content

Commit

Permalink
PHP: Update example with string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Mar 3, 2018
1 parent 9f1f8d6 commit 5e9c575
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/prism-php.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ <h2>PHP embedded in HTML</h2>
} ?>
&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.
Expand Down

0 comments on commit 5e9c575

Please sign in to comment.