ビット演算子

PHP用語集

カテゴリー: エラーメッセージ  閲覧数:624 配信日:2016-08-23 10:23


ビット演算子


比較一覧表
名称 表記 説明(各桁 (ビット単位) で、) 具体 ベン図
論理積 $x & $y 両方 「1」 の場合 「1」、
どちらかが 「0」 の場合 「0」
$x
$y
$x & $y
1011
1101
1001

論理和 $x | $y どちらかが 「1」 の場合 「1」、
両方 「0」 の場合 「0」
$x
$y
$x & $y
1010
1100
1110

排他的論理和 $x ^ $y 等しい場合 「0」、
異なる場合 「1」
$x
$y
$x ^ $y
1010
1100
0110

否定 ~$x ビットを反転 $x
~$x
1010
0101



週間人気ページランキング / 4-17 → 4-23
順位 ページタイトル抜粋 アクセス数
1 PHP用語 8
2 「セキュリティ対策」で使用するPHP関数 2
2026/4/24 5:05 更新
指定期間人気ページランキング / 2020-5-28 → 2026-4-23
順位 ページタイトル抜粋 アクセス数
1 PHP用語 6729
2 ブラウザを閉じたらセッションデータはどうなるの? | セッション 2557
3 Parse error: syntax error, unexpected 'public' (T_PUBLIC) | Parse error(エラーメッセージ) 2515
4 ブラウザを閉じたらセッションデータはどうなるの? | セッション 1710
5 【テスト投稿】テスト | 1133
6 セッション管理が必要な理由は、HTTPプロトコルには状態を保持する機能がないため | セッション 1090
7 PHPで定数を定義する方法は2種類ある / 配列定数の定義 1067
8 Fatal error: Access level to ▲::$△ must be protected (as in class ●) or weaker | Fatal error(エラーメッセージ) 911
9 Fatal error: Uncaught Error: Call to a member function modify() on string | Fatal error(エラーメッセージ) 882
10 コード例 … 「例外処理」はネストすることができる 869
11 curl で Cookie を使用する 864
12 Fatal error: require_once(): Failed opening required 'PEAR.php' | Fatal error(エラーメッセージ) 863
13 Fatal error: Uncaught RuntimeException: SplFileObject::__construct(): failed to open stream: Permission denied in | Fatal error(エラーメッセージ) 751
14 定数 739
15 インターフェイス | クラスとオブジェクト 701
16 Fatal error: Uncaught HeadlessChromium\Exception\OperationTimedOut: Operation timed out (3sec) in | Fatal error(エラーメッセージ) 697
17 メンバー | クラスとオブジェクト 648
18 Warning: include() [function.include]: Failed opening '**.php' for inclusion (in | Warning(エラーメッセージ) 643
19 ( ! ) Fatal error: Uncaught PDOException: SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column | Fatal error(エラーメッセージ) 611
19 Warning: strlen() expects parameter 1 to be string, array given in ○○.php on line △△ | Warning(エラーメッセージ) 611
2026/4/24 5:05 更新