Reputation: 8965
I have static function getQuery(isset($var)?$var:$var="no")
which does not work.
I want to use it either by DoDb::getQuery();
or DoDb::getQuery($var);
depending on the necessities.
Upvotes: 1
Views: 66
Reputation: 808
Look at this page http://tuxradar.com/practicalphp/4/15/5. This is the same in many language ;)
Upvotes: 2