combine 2 php lines of command?
<p>I have these 2 lines of command :</p>

<pre><code>$x = explode('/', $_SERVER["PHP_SELF"]);
echo ($x[0]);
</code></pre>

<p>Please tell me how to combine them into 1 line? I tried this but error :</p>

<pre><code>echo ( explode('/', $_SERVER["PHP_SELF"])[0] );
</code></pre>

<p>Thanks so much !</p>
