Re: Serious alternatives to PHP
thinking about php some more, it does have a few interesting reflection shortcuts, which make programming with it a bit easier.
you can do something like this, for example:
Code:
class MyClass {
// class definition
}
$myClassname="MyClass";
$myInstance = new $MyClassname();
which is nice.
You can also access functions over strings as well:
Code:
function myFunc() { // do stuff }
$myFunctionname="myFunc";
$myFunctionname();
which takes some of the pain out of php not being functional.
there are 10 types of people in the world: those that understand binary and i don't know who the other F are.
Bookmarks