wpseek.com
WordPress开发者和主题制作者的搜索引擎



absint › WordPress Function

Since2.5.0
已弃用n/a
absint ( $maybeint )
参数:
  • (mixed) $maybeint Data you wish to have converted to a non-negative integer.
    Required: Yes
返回:
  • (int) A non-negative integer.
定义在:
文档:

Converts a value to non-negative integer.



源码

function absint( $maybeint ) {
	return abs( (int) $maybeint );
}