rfc:parameter_type_casting_hints
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rfc:parameter_type_casting_hints [2012/03/04 01:01] – Expand RFC ircmaxell | rfc:parameter_type_casting_hints [2012/03/04 01:04] – [Syntax] ircmaxell | ||
---|---|---|---|
Line 23: | Line 23: | ||
<?php | <?php | ||
- | function test((int) $intParam, (string) $strParam = " | + | |
?> | ?> | ||
Line 31: | Line 31: | ||
<?php | <?php | ||
- | function test((int) $int, (float) $float, (bool) $bool, (string) $string) { | + | |
- | return is_int($int) && is_float($float) && is_bool($bool) && is_string($string); | + | return is_int($int) && is_float($float) && is_bool($bool) && is_string($string); |
- | } | + | } |
?> | ?> |
rfc/parameter_type_casting_hints.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1