blob: 992296b97fd82692633fe17210ecf0cc358414dc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
$user_name = 'Fred';
echo "<tt>Hello <strong>$user_name</tt></strong>";
// XHP: Typechecked, well-formed, and secure
$user_name = 'Andrew';
$xhp = <tt>Hello <strong>{$user_name}</strong></tt>;
// ^ tag
// ^ tag
// ^ string
echo await $xhp->toStringAsync();
|