Rewrite string with variable interpolation ----- <?php "{$e}"; ----- $stmts[0]->expr->parts[0]->setAttribute('origNode', null); ----- <?php "{$e}";