2 ms·
> Unless you have a concrete objection with a scientific basis I did. Please solve the problem I put forward. If you solve it, you win.
by maratd 15y ago
> Unless you have a concrete objection with a scientific basis
I did. Please solve the problem I put forward. If you solve it, you win.
- chc 15y agoYou asked, "How can PHP get a response from a function in JavaScript?" Well, assuming we have the following JavaScript function: function multiplyString(str, times) { while (times) { str += str; times -= 1; } return str; } We could write: <?php console->log(multiplyString("Hello", 3)); ?> You then ask, "What if the response is a Date object?" You would call it the same way, and get back a Date object. The rest of your question adds a bunch of other suppositions, all of them fairly vague and none of which seem particularly more salient than the first two. If you have a particular reason to think this would be intractable, maybe you could explain in more detail the problem you see, and perhaps an example of where it shows up in popular multi-language runtimes and interfaces.