|
Posted by radmission05@gmail.com on 01/13/08 08:17
On Jan 13, 12:16 am, "radmissio...@gmail.com" <radmissio...@gmail.com>
wrote:
> 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();
> ?>
im not familiar with the versions.. :P
Navigation:
[Reply to this message]
|