摘要: 1 向浏览器输出数据:print()、echo()、printf()、sprintf()、print()和echo()语句都是把传入它的数据输出到浏览器pintf()输出静态文本和一个或多个变量中存储的动态信息组成的混合语句sprintf()相比于print(),其函数的功能一样,但它将输出赋给一个字符串而不是直接呈现给浏览器2 与类型有关的函数:获取类型gettype() string gettype(mixed var) 转换类型settype() boolean settype(mixed var,string type)3 变量声明:变量总是以美元符$开头,然后是变量名。4 hered 阅读全文
posted @ 2013-07-24 22:09 hww836967373 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 递归在PHP中的应用举例%d",$pNum);printf ("$%s", number_format ($newBalance,2));printf ("$%s", number_format ($periodicPayment,2));printf ("$%s", number_format ($paymentPrincipal,2));printf ("$%s", number_format ($paymentInterest,2));#if balance not yet zero, recurs 阅读全文
posted @ 2013-07-24 13:17 hww836967373 阅读(271) 评论(0) 推荐(0) 编辑