実際に動作しており確認できるサンプル、実際には動作しないがコピペで試せるサンプルなど、、、あります。
時間
┣ date
┣ getdate
┣ gmdate
┣ mktime
┗ time
JSON 関数
その他
ビット演算子 は、ビット演算 をする際に使用する 演算子 です。


ビット積 ( 論理積 )


&  ⇒  各ビットごとで、どちらも 1 の場合 1、どちらかが 0 の場合 0 となります。

$x      : 1011
$y      : 1101
$x & $y : 1001

⇒ sample


ビット和 ( 論理和 )


|  ⇒  各ビットごとで、どちらかが 1 の場合 1、どちらも 0 の場合 0 となります。

$x      : 1010
$y      : 1100
$x | $y : 1110

⇒ sample


排他的論理和


^  ⇒  各ビットごとで、等しい場合 0、異なる場合 1 となります。

$x      : 1010
$y      : 1100
$x ^ $y : 0110

⇒ sample


否定


~  ⇒  各ビットごとで、ビットを 反転 します。

$x  : 1010
~$x : 0101

⇒ sample


左シフト


<<  ⇒  $x$y の値分、シフト し、0 で埋めます。

$x       : 0011
$y       : 0001
$x << $y : 0110

⇒ sample


右シフト


>>  ⇒  $x$y の値分、シフト し、0 で埋めます。

$x       : 0110
$y       : 0001
$x >> $y : 0011

⇒ sample

2012/12/18 03:42 PHP TB(-) CM(-)
recommend
検索
繰り返し処理
条件分岐処理
記号
┗ @
B
┣ bin2hex
┣ bindec
┗ break
C
┣ compact
┣ count
┗ current
D
┣ date
┣ decbin
┣ dechex
┣ define
┣ defined
┣ die
┣ dirname
E
┣ each
┣ echo
┣ else
┣ elseif
┣ empty
┣ end
┣ endfor
┣ endif
┣ exec
┣ exit
┣ explode
┗ extract
I
┣ if 文
┣ implode
┣ include
┣ ini_get
┣ ini_set
┣ intval
┣ is_bool
┣ is_dir
┣ is_file
┣ is_int
┣ is_long
┣ is_nan
┣ is_null
┣ is_real
┗ isset
K
┣ key
┣ krsort
┗ ksort
L
┣ list
┗ ltrim
N
┣ natsort
┗ next
P
┣ php.ini
┣ phpinfo
┣ pos
┣ prev
┣ print
┗ print_r
R
┣ range
┣ require
┣ reset
┣ return
┣ rmdir
┣ rsort
┗ rtrim
T
┣ time
┗ trim
U
┣ uasort
┣ uksort
┣ uniqid
┣ unlink
┣ unset
┗ usort
V
W
FC2 カウンター