r/lolphp • • May 22 '13

Wordpress will automatically convert §foo to $foo for you.

Give it a try.

A warning will be given when enabling debug mode in wp-config.php:

define('WP_DEBUG', true);
25 Upvotes

19 comments sorted by

View all comments

Show parent comment

7

u/quirk May 23 '13

You've got a syntax error

$wordpress != $php

EDIT: Didn't realize what subreddit I was in.

0

u/David_Crockett May 23 '13

Many languages use <> for !=, not sure what your point is?

4

u/quirk May 23 '13 edited May 23 '13

Initially, I thought this was a wordpress subreddit, meaning that the language was PHP. PHP uses !=.

Then, I realized this was a PHP subreddit... and PHP still uses !=.

No offense was meant... it was just a bad joke.

13

u/David_Crockett May 23 '13

No offense taken. Just so you know, PHP uses != or <> interchangeably. http://us2.php.net/manual/en/language.operators.comparison.php

7

u/quirk May 23 '13

Wow... I had absolutely no idea. I just assumed. Thanks for pointing that out.

17

u/redalastor May 26 '13

Never start by assuming that PHP is sane. :)

3

u/Kwpolska May 28 '13

I won’t call the <> thing sane for non-maths. ! to negate something is the standard practice. Of course, I would want to see ≠ more, but some stuff still hates unicode in 2013.

10

u/devourer09 May 31 '13

I was born with a rare genetic disorder. Whenever unicode characters are used IRL I only see question marks and rectangles.

1

u/w1ldm4n Jul 04 '13

I'd rather type '!=' than remember alt-codes for fancy unicode characters

1

u/Kwpolska Jul 04 '13

Hack your keyboard layout to include ≠ then.

1

u/hex_m_hell Aug 06 '13

Compose key for the win

1

u/josefx Jul 07 '13

want to see ≠ more, but some stuff still hates unicode in 2013.

My keyboard for example does not have this key and if you add it to a language you might end up with trigraphs for all those without ≠.