Last active
April 11, 2016 07:46
-
-
Save tchikuba/008e28d8ffe71b1c07cbbcca8e8cefdc to your computer and use it in GitHub Desktop.
PHP代入演算子
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // 代入演算子 | |
$a = 1; | |
print $a; // 1 | |
// 参照による代入 | |
$a = 1; | |
$b = &$a; | |
print $b; // 1 | |
$a = 2; | |
print $b; // 2($aが変わったので$bも変化する) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment