[ create a new paste ] login | about

Link: http://codepad.org/MdQ2T20C    [ raw code | output | fork ]

PHP, pasted on Mar 16:
1
2
3
4
5
6
7
8
9
10
11
12
<?php
class Test {
    public $prop = 'A';
}

$one = new Test();
$two = $one;

echo $one->prop;
$one->prop = 'B';

echo $two->prop;


Output:
1
AB


Create a new paste based on this one


Comments: