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 11:59] – [Introduction] davey | rfc:prototypecasting [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
* Version: 0.1 | * Version: 0.1 | ||
* Date: 2012-02-27 | * Date: 2012-02-27 | ||
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.1330430360.txt.gz · Last modified: 2017/09/22 13:28 (external edit)