PHP: using => operator without an array
<p>Is there a way to use the PHP <code>=&gt;</code> operator (?) without using the <code>array()</code> "constructor"?</p>

<p>To be specific, I want to create a function that will get a list of keys and values without wrapping it into an array:</p>

<pre><code>function keysAndValues($items) {
    /* ... */
}

keysAndValues(
    'key1' =&gt; 'value1',
    'key2' =&gt; 'value2',
    'key3' =&gt; 'value3'
);
</code></pre>

<p>Instead of </p>

<pre><code>keysAndValues(array(
    'key1' =&gt; 'value1',
    'key2' =&gt; 'value2',
    'key3' =&gt; 'value3'
));
</code></pre>

<p>Is there a way to do this?</p>
