PHP Extreme Odd situations

A friend of mine just sent me this site – It’s insane good. Shows some good situations of when PHP leave you wondering WTF (sorry no better way to describe this).

Here is a great example from it:

// I just need four NULLs to demo this.
$a = array_fill(0, 4, NULL);
and this is the result
array(4) {
If you want to see the full article and some more info about this particular issue, visit:

About mcloide

Making things simpler, just check: View all posts by mcloide

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: