1<?php // use type hinting to specify the expected data type of an argument
2function startParty(array $guests, array $food = null) {
3 // party stuff...
4}
5$guests = array("Susan Foreman", "Sarah Jane Smith");
6startParty($guests, null);
7?>
1Apparently 'type hinting' in PHP can be defined as
2follows: "Type hinting" forces you to only pass objects
3of a particular type. This prevents you from
4passing incompatible values, and creates a standard
5if you're working with a team