Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Common JavaScript Gotchas. Parent comment
<?php $a = 1; /* global scope */
function test() { echo $a }
test();
in javascript, $a would be 1 but in PHP it is undefined and won't produce output,
<?php $a = 1; /* global scope */
function test() { echo $a }
test();
in javascript, $a would be 1 but in PHP it is undefined and won't produce output,