Undefined variable - the error on a very very simple code but can't know what causing it
<p>I wanted to know the corresponding week name in my local lang. so I used <code>strftime</code> to get
the week number then using an array to get the name. however I get an error!! of undefined index. I already checked the output of <code>strftime</code> and it's an integer ( currently it's 3).</p>

<pre><code>   $day = array('الأحد','الإثنين','الثلثاء','الأربعاء','الخميس','الجمعة','السبت');
   $day[strftime('%w',$timestamp)]
</code></pre>

<h2>update</h2>

<p>I tried to do this:</p>

<pre><code>   $day[3]
</code></pre>

<p>I got the same error!</p>
