# Only use default value for some of the arguments

**URL:** <https://forum.kirupa.com/t/only-use-default-value-for-some-of-the-arguments/297953>\
**Category:** programming\
**Created:** [October 11, 2009, 3:57am UTC](https://forum.kirupa.com/t/only-use-default-value-for-some-of-the-arguments/297953 "2009-10-11T03:57:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [October 11, 2009, 3:57am UTC](https://forum.kirupa.com/t/only-use-default-value-for-some-of-the-arguments/297953/1 "2009-10-11T03:57:48Z")

</div>

How do I specify that I want to use the default values for the first two arguments but not the last argument?

```php

function doStuff($a = 1, $b = 2, $c = 3) {
   echo $a . $b. $c;
}

// psuedo-code:
doStuff(DEFAULT, DEFAULT, 99);

```
