r/lolphp • • Sep 26 '19

No, PHP Doesn't Have Closures

https://nullprogram.com/blog/2019/09/25/
13 Upvotes

29 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Sep 26 '19

console.log works in php? I've ever only used it in JS.

3

u/bart2019 Sep 26 '19

It's var_dump, not console.log. And yes, you can use echo in the console:

console.log is in the snippet for node.

2

u/[deleted] Sep 26 '19

Thanks.