Spare Pencil

August 18 One comment
Watch the replies

Did you know this about PHP?

It occurred to me today that there is actually a difference between using the $GLOBALS array and the global keyword in PHP.

You write:

function foo()
{
   global $var;
}

PHP does:

function foo()
{
   $var =& $GLOBALS['var'];
}

Why does this matter? The manual knows the answer.

On another note: I have been working on a new theme for a while now. It’s probably going to be my best one yet, but I’ll let you judge about that. I am also developing a WordPress plugin at the moment, it will be released when I launch the theme. :)


One Comment

Are you next?

Reply Here




You may use some markup in your comment, unless you're drunk.
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>