【发布时间】:2013-12-02 04:44:13
【问题描述】:
假设这个
function Args($a) {
if (/*HOW*/) {
echo "the argument is a pure number";
} else {
echo "the argument is a string";
}
}
Args(4); -> the argument is a pure number
Args("4"); -> the argument is a string
根据函数和示例,如何根据类型参数获得差异?
【问题讨论】:
标签: php string types numbers arguments