---
title: "With a heredoc syntax, do I get variable substitution inside the heredoc contents?"  
description: "With a heredoc syntax, do I get variable substitution inside the heredoc contents?"  
author: "Anonymous User"  
published: 2011-03-18  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/468/with-a-heredoc-syntax-do-i-get-variable-substitution-inside-the-heredoc-contents  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# With a heredoc syntax, do I get variable substitution inside the heredoc contents?

Yes

## Answers

### Answer by Anonymous User

Yes


---

Original Source: https://www.mindstick.com/interview/468/with-a-heredoc-syntax-do-i-get-variable-substitution-inside-the-heredoc-contents

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
