Native PHP function that will grant me access to the string portions directly without having to create a temporary array?
<p>I asked this question before, <a href="http://stackoverflow.com/questions/264441/does-a-native-php-5-function-exist-that-does-the-following-in-1-line">Here</a> however I think I presented the problem poorly, and got quite a few replies that may have been useful to someone but did not address the actual question and so I pose the question again.</p>

<p>Is there a single-line native method in php that would allow me to do the following.
Please, please, I understand there are other ways to do this simple thing, but the question I present is does something exist <strong>natively in PHP</strong> that will <strong>grant me access to the array</strong> values directly <strong>without having to create a temporary array</strong>.</p>

<pre><code>$rand_place = explode(",",loadFile("csvOf20000places.txt")){rand(0,1000)};
</code></pre>

<p>This is a syntax error, however ideally it would be great if this worked!</p>

<p>Currently, it seems unavoidable that one must create a temporary array, ie</p>

<p><strong>The following is what I want to avoid:</strong></p>

<pre><code>$temporary_places_array = explode(",",loadFile("csvOf20000places.txt"));
$rand_place = $temporary_places_array[rand(0,1000)];
</code></pre>

<p>Also, i must note that my actual intentions are not to parse strings, or pull randomly from an array. <strong>I simply want access into the string without a temporary variable</strong>. This is just an example which i hope is easy to understand. There are many times service calls or things you do not have control over returns an array (such as the explode() function) and you just want access into it without having to create a temporary variable.</p>

<p><strong>NATIVELY NATIVELY NATIVELY, i know i can create a function that does it.</strong></p>
