There was already a question similar to this, however it didn't quite answer the question.
So my question is, if I have a PhantomJS script which is executed via exec in PHP, could I also pass some arguments to it which the PhantomJS script could then somehow get and use? If so, how would I pass them from the PHP and how would I use them in the PhantomJS script? If not, is there any other way of doing this? Thanks.