define variable in file_get_contents
<p>I have this code </p>

<pre><code>&lt;?php
$a1 = 'http://www.hamooz.com';
$a2 = 'http://www.myegy.com';
$a3 = 'http://www.tech-wd.com/wd';
$num = rand(1,3);

$numb =  '$a'.$num;

echo file_get_contents($numb);
?&gt;
</code></pre>

<p>the problem appear like:</p>

<blockquote>
  <p>Warning: file_get_contents($a3) [function.file-get-contents]: failed to open stream: No such file or directory in C:\xampp\htdocs\ttt\bessah.php on line 9</p>
</blockquote>
