rfc:prototypecasting
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:prototypecasting [2012/02/28 12:00] – [Request for Comments: Prototype Argument Type Casting] davey | rfc:prototypecasting [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 19: | Line 19: | ||
<code php> | <code php> | ||
<?php | <?php | ||
- | function addProfile( (string) $name, (int) $age, (float) $salary) { | + | function addProfile( (string) $name, (int) $age, (float) $heightInMeters) { |
+ | echo gettype($name); | ||
+ | echo gettype($age); | ||
+ | echo gettype($heightInMeters); | ||
} | } | ||
+ | |||
+ | addProfile(" | ||
?> | ?> | ||
</ | </ |
rfc/prototypecasting.1330430415.txt.gz · Last modified: 2017/09/22 13:28 (external edit)