Named Arguments in PHP
<p>In C#, there is a new feature coming with 4.0 called Named Arguments and get along well with Optional Parameters.</p>

<pre><code>private static void writeSomething(int a = 1, int b = 2){
   // do something here;
}

static void Main()
{
   writeSomething(b:3); // works pretty well 
}
</code></pre>

<p>I was using this option to get some settings value from users.</p>

<p>In PHP, I cannot find anything similar except for the optional parameters but I am accepting doing <code>$.fn.extend</code> (jQuery) kind of function :</p>

<pre><code>function settings($options)
{
   $defaults = array("name"=&gt;"something","lastname"=&gt;"else");
   $settings = array_merge($defaults,$options);
}

settigs(array("lastname"=&gt;"John");
</code></pre>

<p>I am wondering what kind of solutions you are using or you would use for the same situation.</p>
