| 
 Posted by radmission05@gmail.com on 01/13/08 08:16 
On Jan 12, 7:56 pm, "Peter Pei" <yan...@telus.com> wrote: 
> Try the following to see it 
> <?php 
>  class A { 
>  } 
>  function foo(A $a = 1) { 
>   ; 
>  } 
>  foo(); 
> ?> 
 
i dont see code like this before, try the following.. hope this will 
help.. :P 
 
<?php 
class A { 
var $val; 
function A($value) 
{ 
$this->val = $val; 
} 
} 
 
function foo(new A(1)) 
{ 
print $a->val 
} 
 
foo(); 
?>
 
[Back to original message] 
 |