specifying return values for functions?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
will this ever be incorporated into PHP?

the typeless nature suggests no.  but with the introduction of limited
"TypeHinting" and plans for a full implementation in 6.0 i hope
they'll add this possibility.

really useful for interfaces, especially if programming by contract.

Re: specifying return values for functions?

Quoted text here. Click to load it

I sincerely hope not.

If you really want to write strongly typed PHP, take a look at


Site Timeline