Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
Slashdot Deals: Prep for the CompTIA A+ certification exam. Save 95% on the CompTIA IT Certification Bundle ×

Comment Intransitive equality and comparison in PHP (Score 1) 729

One of the many lovely things about PHP, though this time it's not the only culprit.

$ php -r 'var_dump("foo" == TRUE); var_dump("foo" == 0); var_dump(TRUE == 0);'
bool(true)
bool(true)
bool(false)

$ php -r 'var_dump(NULL == 0); var_dump(NULL < -1);'
bool(true)
bool(true)

Strange, and not in a good way. Makes the mathematical part of my brain explode.

Comment Re: Ridiculous. (Score 4, Informative) 914

See Table 6: Ex-Offenders and the Labor Market

At least according to one study, race is a big part of it. It's not the only part - level of education appears to have as big an effect - but it's clear that a black felon is much less employable than a white felon.

Help me, I'm a prisoner in a Fortune cookie file!

Working...