If the application waits for numerical input, consider verifying data with is_numeric(), or silently change its type using settype(), or use its numeric representation by sprintf().

 
  • 如果程序等待输入一个数字,可以考虑使用is_numeric()来检查,或者直接使用settype()来转换它的类型,也可以用sprintf()把它格式化为数字。
今日热词
目录 附录 查词历史