title: Conditional parameters in function definition PHP
body: <p>I would like to know, if there is any possibility to make a condition for parameters in a function definition, eg:</p>
  
  <pre><code>function attachFile
  (
    $function_method = "standard", // just default value..
    if ( $function_method == "standard" )
    {
      $next_parameter_for_classic_method,
      // ...
    }
    else if ( $function_method == "other_method" )
    {
      $next_parameter_for_other_method,
      // ...
    }
  )
  {
    // work...
  }
  </code></pre>
  
  <p>It would greatly simplify the work with functions (I think so at least). Thanks in advance.</p>