« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 393 for empty (0.008 sec.)
変数が空であるかどうかを検査する 9804
« doubleval floatval » PHP Manual 変数操作 関数 変数が空であるかどうかを検査する 検索 empty (PHP 4, PHP 5, PHP 7, PHP 8) empty — 変数が空であるかどうかを検査する 説明 function empty ( mixed $var ): bool 変数が空であるかどうかを検査します。 ... 変数が空であるとみなされるのは、変数が存在しない場合や 変数の値が false に等しい場合です。 empty() は、変数が存在しない場合でも警告を発生させません。 このことは、多次元配列やチェインされたプロパティのような、 ネストされ ... たデータ構造であっても当てはまります。 パラメータ var チェックする変数 変数が存在しなくても警告は発生しません。 つまり、 empty() は本質的に !isset($var) || $var == false と同じことを簡潔に記述しているだけです。 戻り値 var が存在しない、 または空や0の ... なされる場合、 true を返します。 詳細は boolean への変換 を参照ください。 それ以外の場合は false を返します。 例 例1 簡単な empty() / isset() の比較 <?php $var = 0 ; // $var が空なのでtrueと評価されます if (empty( $var )) { echo '$var is either 0, empt ...
https://man.mtool.work/php/8.3/function.empty.html
変数が空であるかどうかを検査する 9761
« doubleval floatval » PHP Manual 変数操作 関数 変数が空であるかどうかを検査する 検索 empty (PHP 4, PHP 5, PHP 7, PHP 8) empty — 変数が空であるかどうかを検査する 説明 function empty ( mixed $var ): bool 変数が空であるかどうかを検査します。 ... 変数が空であるとみなされるのは、変数が存在しない場合や 変数の値が false に等しい場合です。 empty() は、変数が存在しない場合でも警告を発生させません。 このことは、多次元配列やチェインされたプロパティのような、 ネストされ ... たデータ構造であっても当てはまります。 パラメータ var チェックする変数 変数が存在しなくても警告は発生しません。 つまり、 empty() は本質的に !isset($var) || $var == false と同じことを簡潔に記述しているだけです。 戻り値 var が存在しない、 または空や0の ... なされる場合、 true を返します。 詳細は boolean への変換 を参照ください。 それ以外の場合は false を返します。 例 例1 簡単な empty() / isset() の比較 <?php $var = 0 ; // $var が空なのでtrueと評価されます if (empty( $var )) { echo '$var is either 0, empt ...
https://man.mtool.work/php/8.3/function.empty.html
正規表現フラグを返す 6705
« RegexIterator::getMode RegexIterator::getRegex » PHP Manual RegexIterator 正規表現フラグを返す 検索 RegexIterator::getPregFlags (PHP 5 >= 5.2.0, PHP 7, PHP 8) RegexIterator::getPregFlags — 正規表現フラグを返す 説明 public function RegexIt ... r = new RegexIterator ( $arrayIterator , '/\s/' , RegexIterator :: SPLIT ); $regexIterator -> setPregFlags ( PREG_SPLIT_NO_EMPTY | PREG_SPLIT_OFFSET_CAPTURE ); if ( $regexIterator -> getPregFlags () & PREG_SPLIT_NO_EMPTY ) { echo 'Ignoring empty piece ... s' ; } else { echo 'Not ignoring empty pieces' ; } ?> 上の例の出力は以下となります。 Ignoring empty pieces 参考 RegexIterator::setPregFlags() - 正規表現フラグを設 ... 定する 関連キーワード: RegexIterator フラグ 正規 表現 getPregFlags test regexIterator empty pieces パラメータ str arrayIterator new setPregFlags echo Ignoring getMode Search getRegex function ...
https://man.mtool.work/php/8.3/regexiterator.getpregflags.html
正規表現フラグを返す 6705
« RegexIterator::getMode RegexIterator::getRegex » PHP Manual RegexIterator 正規表現フラグを返す 検索 RegexIterator::getPregFlags (PHP 5 >= 5.2.0, PHP 7, PHP 8) RegexIterator::getPregFlags — 正規表現フラグを返す 説明 public function RegexIt ... r = new RegexIterator ( $arrayIterator , '/\s/' , RegexIterator :: SPLIT ); $regexIterator -> setPregFlags ( PREG_SPLIT_NO_EMPTY | PREG_SPLIT_OFFSET_CAPTURE ); if ( $regexIterator -> getPregFlags () & PREG_SPLIT_NO_EMPTY ) { echo 'Ignoring empty piece ... s' ; } else { echo 'Not ignoring empty pieces' ; } ?> 上の例の出力は以下となります。 Ignoring empty pieces 参考 RegexIterator::setPregFlags() - 正規表現フラグを設 ... 定する 関連キーワード: RegexIterator フラグ 正規 表現 getPregFlags regexIterator empty pieces arrayIterator setPregFlags Ignoring getMode getRegex construct ビット マスク teststr ArrayIterator else ignoring 参 ...
https://man.mtool.work/php/8.3/regexiterator.getpregflags.html
Returns whether the collection is empty 6662
« Ds\Collection::copy Ds\Collection::toArray » PHP Manual Ds\Collection Returns whether the collection is empty 検索 Ds\Collection::isEmpty (PECL ds >= 1.0.0) Ds\Collection::isEmpty — Returns whether the collection is empty 説明 public func ... tion Ds\Collection::isEmpty (): bool Returns whether the collection is empty. パラメータ この関数にはパラメータはありません。 戻り値 Returns true if t ... he collection is empty, false otherwise. 例 例1 Ds\Collection::isEmpty() example <?php $a = new \Ds\Vector ([ 1 , 2 , 3 ]); $b = new \Ds\Vector ( ... ); var_dump ( $a -> isEmpty ()); var_dump ( $b -> isEmpty ()); ?> 上の例の出力は、 たとえば以下のようになります。 bool(false) bool(true) 関連キーワード ...
https://man.mtool.work/php/8.3/ds-collection.isempty.html
Returns whether the deque is empty 6662
« Ds\Deque::insert Ds\Deque::join » PHP Manual Ds\Deque Returns whether the deque is empty 検索 Ds\Deque::isEmpty (PECL ds >= 1.0.0) Ds\Deque::isEmpty — Returns whether the deque is empty 説明 public function Ds\Deque::isEmpty (): bool Retu ... rns whether the deque is empty. パラメータ この関数にはパラメータはありません。 戻り値 Returns true if the deque is empty, false otherwise. 例 例1 Ds\Deq ... ue::isEmpty() example <?php $a = new \Ds\Deque ([ 1 , 2 , 3 ]); $b = new \Ds\Deque (); var_dump ( $a -> isEmpty ()); var_dump ( $b -> ... isEmpty ()); ?> 上の例の出力は、 たとえば以下のようになります。 bool(false) bool(true) 関連キーワード: Deque isEmpty deque empty w ...
https://man.mtool.work/php/8.3/ds-deque.isempty.html
Returns whether the pair is empty 6662
« Ds\Pair::copy Ds\Pair::jsonSerialize » PHP Manual Ds\Pair Returns whether the pair is empty 検索 Ds\Pair::isEmpty (No version information available, might only be in Git) Ds\Pair::isEmpty — Returns whether the pair is empty 説明 public fu ... nction Ds\Pair::isEmpty (): bool Returns whether the pair is empty. パラメータ この関数にはパラメータはありません。 戻り値 Returns true if the pai ... r is empty, false otherwise. 例 例1 Ds\Pair::isEmpty() example <?php $a = new \Ds\Pair ( "a" , 1 ); $b = new \Ds\Pair (); var_dump ( ... $a -> isEmpty ()); var_dump ( $b -> isEmpty ()); ?> 上の例の出力は、 たとえば以下のようになります。 bool(false) bool(true) 関連キーワード ...
https://man.mtool.work/php/8.3/ds-pair.isempty.html
Returns whether the queue is empty 6662
« Ds\Queue::count Ds\Queue::jsonSerialize » PHP Manual Ds\Queue Returns whether the queue is empty 検索 Ds\Queue::isEmpty (PECL ds >= 1.0.0) Ds\Queue::isEmpty — Returns whether the queue is empty 説明 public function Ds\Queue::isEmpty (): b ... ool Returns whether the queue is empty. パラメータ この関数にはパラメータはありません。 戻り値 Returns true if the queue is empty, false otherwise. 例 例1 Ds\Que ... ue::isEmpty() example <?php $a = new \Ds\Queue ([ 1 , 2 , 3 ]); $b = new \Ds\Queue (); var_dump ( $a -> isEmpty ()); var_dump ( $b -> ... isEmpty ()); ?> 上の例の出力は、 たとえば以下のようになります。 bool(false) bool(true) 関連キーワード: Queue isEmpty queue empty w ...
https://man.mtool.work/php/8.3/ds-queue.isempty.html
Returns whether the set is empty 6662
« Ds\Set::intersect Ds\Set::join » PHP Manual Ds\Set Returns whether the set is empty 検索 Ds\Set::isEmpty (PECL ds >= 1.0.0) Ds\Set::isEmpty — Returns whether the set is empty 説明 public function Ds\Set::isEmpty (): bool Returns whether t ... he set is empty. パラメータ この関数にはパラメータはありません。 戻り値 Returns true if the set is empty, false otherwise. 例 例1 Ds\Set:: ... isEmpty() example <?php $a = new \Ds\Set ([ 1 , 2 , 3 ]); $b = new \Ds\Set (); var_dump ( $a -> isEmpty ()); var_dump ( $b -> isEm ... pty ()); ?> 上の例の出力は、 たとえば以下のようになります。 bool(false) bool(true) 関連キーワード: isEmpty empty whether dump intersect join otherwise example ...
https://man.mtool.work/php/8.3/ds-set.isempty.html
Returns whether the stack is empty 6662
« Ds\Stack::count Ds\Stack::jsonSerialize » PHP Manual Ds\Stack Returns whether the stack is empty 検索 Ds\Stack::isEmpty (PECL ds >= 1.0.0) Ds\Stack::isEmpty — Returns whether the stack is empty 説明 public function Ds\Stack::isEmpty (): b ... ool Returns whether the stack is empty. パラメータ この関数にはパラメータはありません。 戻り値 Returns true if the stack is empty, false otherwise. 例 例1 Ds\Sta ... ck::isEmpty() example <?php $a = new \Ds\Stack ([ 1 , 2 , 3 ]); $b = new \Ds\Stack (); var_dump ( $a -> isEmpty ()); var_dump ( $b -> ... isEmpty ()); ?> 上の例の出力は、 たとえば以下のようになります。 bool(false) bool(true) 関連キーワード: Stack isEmpty stack empty w ...
https://man.mtool.work/php/8.3/ds-stack.isempty.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT