blob: 57563a131fc1ec946304b8f977fc898f6face9c4 (
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();
|