How do I add optional arguments to my function?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/34868/how-do-you-create-optional-arguments-in-php">How do you create optional arguments in php?</a>  </p>
</blockquote>



<p>I built a function with 1 argument. That function is called numerous places on many, many pages on my site. I just decided that I need another parameter for this function.</p>

<p>In order to avoid "Warning: Missing argument" errors, is there any way to add a second argument with a bit of logic that tests the presence of a second argument in the calling command?</p>

<p>I do not want to go back through my entire website and try to catch and update every function call merely to throw a null value on it in order to void the error messages.</p>

<p>Thanks.</p>
