Couple of questions here, I'm hoping someone will know the answer to one or both.
1. Is there built-in functionality to sort an ASH array?
2. Is there a way to call a method if given a reference to the method? The only reference I can think of in ASH is the method's name. The code I'm looking for would (in theory) work something like this:
The above code would then print "foo". Is there any functionality resembling this?
1. Is there built-in functionality to sort an ASH array?
2. Is there a way to call a method if given a reference to the method? The only reference I can think of in ASH is the method's name. The code I'm looking for would (in theory) work something like this:
Code:
string method = "print";
call_function( method, "foo" );
The above code would then print "foo". Is there any functionality resembling this?