[ create a new paste ] login | about

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

PHP, pasted on Oct 14:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
class simple
{
  function __construct()
  { 
    $name = "seenivasan";    
  } 
  
}

  $s = new simple();
  echo $s.$name;

?>


Output:
1
2

Catchable fatal error: Object of class simple could not be converted to string on line 12


Create a new paste based on this one


Comments: