Call variable without echo or print : <p>I'm trying to call variable with in variable and below attempts are working fine</p>

<p>Attempt 01:</p>

<pre><code>&lt;?php
$var1 = "Hello";
echo $var1;
?&gt;
</code></pre>

<p>Attempt 02:</p>

<pre><code>&lt;?php
$view = '$var1 = "Hello";
echo $var1;';
echo $view;
?&gt;
</code></pre>

<p>But I'm trying to call variable without using "echo" or "print" command, as mentioned below</p>

<pre><code>&lt;?php
$view = '$var1 = "Hello";
echo $var1;';
$view;
?&gt;
</code></pre>

<p>Is there any other way to achieve this? Please advise.</p>
