php html {{variable}} code example Example: use php variable in html attributes <span title="<?php echo htmlspecialchars($variable); ?>">