how about:

function test1()
{
        return "Hello ".test2();
}
in you setting the returned world makes no sence since it's not printed or put in a variable or anything (amasing that is does not give an error that way.

hth,

Folkert
Jeroen Beckers wrote:
Hi,

This is the situation:

Flash uses AMFPHP to call a php function 'test1()' .

In my php file, the function is defined as followed:

function test1()
{
test2();
return "Hello";
}

function test2()
{
return "World";
}

Now, AMFPHP returns "World" (when I call test1() ), but I would expect
him to return "Hello" (like flash would do).

Is this a feature or a bug? (Or maybe just a hole in my PHP knowledge ?)

Greets,
Jeroen

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to