Function overloading in php?

No. Because it has not been implemented. There's a PECL extension that allows you to do this, but it makes your code not portable to environments where this extension is not available.

No. Because it has not been implemented. There's a PECL extension that allows you to do this, but it makes your code not portable to environments where this extension is not available.

Don't ask why it has not been implemented. Since PHP 5.3 you can use namespaces for 'kind of' overloading namespace MyNamespace; function mail() { return \mail(); }.

This can only be done internally (through a PHP extension), unless you install the PECL runkit extension, which exposes function overloading functionality to userspace. However, you probably don't want to use runkit in a production environment, so there's no good way to do this from userspace.

– Pekka Aug 8 '10 at 12:49 yes sir I read it – Ankur Mukherjee Aug 8 '10 at 13:00.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions