- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
「関数リファレンス/absint」の版間の差分
提供: WordPress Codex 日本語版
< 関数リファレンス
(英語版をコピペ。) |
(和訳完了。) |
||
1行目: | 1行目: | ||
− | + | <div id="Description"> | |
− | + | == 説明 == | |
− | + | </div> | |
− | + | 値を負ではない整数に変換します。 | |
− | == | + | |
− | + | <tt>abs( intval( $foo ) )</tt> と同義です。 | |
− | + | <div id="Usage"> | |
+ | == 使用法 == | ||
+ | </div> | ||
+ | <?php absint( $maybeint ); ?> | ||
− | == | + | <div id="Parameters"> |
+ | == パラメーター == | ||
+ | </div> | ||
+ | {{Parameter|$maybeint|mixed|負ではない整数に変換したいデータ。|required}} | ||
− | + | <div id="Return Values"> | |
+ | == 戻り値 == | ||
+ | </div> | ||
+ | {{Return||int|負ではない整数。}} | ||
− | == | + | <div id="Change Log"> |
+ | == 改訂履歴 == | ||
+ | </div> | ||
+ | * [[Version 2.5|2.5.0]]にて導入されました。 | ||
− | {{ | + | <div id="Source File"> |
+ | == ソースファイル == | ||
+ | </div> | ||
+ | <tt>absint()</tt> は {{Trac|wp-includes/functions.php}} にあります。 | ||
− | |||
− | {{ | + | {{原文|Function Reference/absint|134653}}<!-- 10:16, 19 August 2013 Djkaz 版 --> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Functions]] | [[Category:Functions]] |
2013年8月19日 (月) 19:22時点における版
値を負ではない整数に変換します。
abs( intval( $foo ) ) と同義です。
使用法
<?php absint( $maybeint ); ?>
パラメーター
- $maybeint
- (mixed) (required) 負ではない整数に変換したいデータ。
- 初期値: なし
戻り値
- (int)
- 負ではない整数。
改訂履歴
- 2.5.0にて導入されました。
ソースファイル
absint() は wp-includes/functions.php
にあります。
最新英語版: WordPress Codex » Function Reference/absint (最新版との差分)