[ create a new paste ] login | about

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

PHP, pasted on Dec 16:
1
2
3
4
5
6
7
8
9
10
11
<?php

class Test {
public $a = 'asd';
}

$a = 'Test';

$b = new $a();

var_dump($b);


Output:
1
2
3
4
object(Test)#1 (1) {
  ["a"]=>
  string(3) "asd"
}


Create a new paste based on this one


Comments: