Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hkolek
on July 25, 2012
|
parent
|
context
|
favorite
| on:
php.js - Run PHP code in JavaScript
Yes you're right, but the code I posted above still doesn't work. It works fine with PHP 5.4 though. This also fails with the same error message:
$fn = function() { echo 'foo'; };
But that's also perfectly valid PHP 5.4 code. Maybe I'm doing something wrong, idk.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: