Page 1 of 1

automatically conver javascript into PHP

Posted: Fri May 11, 2012 7:37 pm
by wvoyance
Very often we need some functions which are the same on javascript and PHP.
Is there any such program that can automatically convert javascript into PHP, or vice versa?

Re: automatically conver javascript into PHP

Posted: Fri May 11, 2012 9:30 pm
by requinix
wvoyance wrote:Very often we need some functions which are the same on javascript and PHP.
Oh really?

Re: automatically conver javascript into PHP

Posted: Fri May 11, 2012 10:53 pm
by Christopher
Maybe you could use php.js to make the job easier. It would make your javascript functions very similar to PHP code.

http://phpjs.org/