文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>num && string

num && string

时间:2006-07-21  来源:snowtty

The 1992 POSIX standard introduced the concept of a numeric string, which is simply a string that looks like a number—for example, " +2". This concept is used for determining the type of a variable. The type of the variable is important because the types of two variables determine how they are compared. In gawk, variable typing follows these rules:

    * A numeric constant or the result of a numeric operation has the numeric attribute.
    * A string constant or the result of a string operation has the string attribute.
    * Fields, getline input, FILENAME, ARGV elements, ENVIRON elements, and the elements of an array created by split that are numeric strings have the strnum attribute. Otherwise, they have the string attribute. Uninitialized variables also have the strnum attribute.
    * Attributes propagate across assignments but are not changed by any use.
相关阅读 更多 +
排行榜 更多 +
塔防豪华战斗

塔防豪华战斗

策略塔防 下载
中顺捕鱼大冒险微信版官方免费下载

中顺捕鱼大冒险微信版官方免费下载

休闲益智 下载
栖云异梦官方安卓版下载

栖云异梦官方安卓版下载

冒险解谜 下载