I like the way in C# where you can write an extension method, and then do things like this:

string ourString = "hello";
ourString.MyExtension("another");

or even

"hello".MyExtention("another");

Is there a way to have similar behavior in PHP?

Edit
Report