subreddit
stringclasses
7 values
author
stringlengths
3
20
id
stringlengths
5
7
content
stringlengths
67
30.4k
score
int64
0
140k
lolphp
IrrelevantXKCD-Bot
d9rq39u
<|sols|><|sot|>DateTime::ISO8601 is not ISO-8601 compatible<|eot|><|sol|>http://php.net/manual/en/class.datetime.php#datetime.constants.types<|eol|><|sor|>Some people get frustrated with e.g. Java due to the burden backward compatibility places on the speed and direction of language and core library development ... but...
9
lolphp
emilvikstrom
d9sldqh
<|sols|><|sot|>DateTime::ISO8601 is not ISO-8601 compatible<|eot|><|sol|>http://php.net/manual/en/class.datetime.php#datetime.constants.types<|eol|><|sor|>[ISO8601 has changed several times over the years.](https://en.wikipedia.org/wiki/ISO_8601#History) * ISO 8601:1988 * ISO 8601:2000 * ISO 8601:2004 <|eor|><|sor|>W...
7
lolphp
qwerty6868
daao01w
<|sols|><|sot|>DateTime::ISO8601 is not ISO-8601 compatible<|eot|><|sol|>http://php.net/manual/en/class.datetime.php#datetime.constants.types<|eol|><|sor|>[ISO8601 has changed several times over the years.](https://en.wikipedia.org/wiki/ISO_8601#History) * ISO 8601:1988 * ISO 8601:2000 * ISO 8601:2004 <|eor|><|sor|>W...
7
lolphp
lol_no_generics
da4qih1
<|sols|><|sot|>DateTime::ISO8601 is not ISO-8601 compatible<|eot|><|sol|>http://php.net/manual/en/class.datetime.php#datetime.constants.types<|eol|><|sor|>> Note: This format is not compatible with ISO-8601, but is left this way for backward compatibility reasons. TIL "backward compatibility" is the opposite of "compa...
6
lolphp
kEQuA7VxEb
3hm7hh
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
102
lolphp
Various_Pickles
cu8yfu1
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
35
lolphp
Schmittfried
cu8upud
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
30
lolphp
Regimardyl
cu8o1qu
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
24
lolphp
maweki
cu9f51g
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
21
lolphp
Schmittfried
cu92w1r
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
19
lolphp
Sjoerder
cu9ayyo
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
18
lolphp
kEQuA7VxEb
cu8x0jl
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
17
lolphp
salty-sardines
cu9ot9r
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
15
lolphp
maweki
cu9f8l2
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
10
lolphp
deuxpi
cuoha6q
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
8
lolphp
BufferUnderpants
cuo1kdj
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
7
lolphp
webdeverper
cubb3ug
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
6
lolphp
Regimardyl
cu8vwwj
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
5
lolphp
coredumperror
cuefye5
<|soss|><|sot|>Conjure Arrays from nothing<|eot|><|sost|> <?php //$thevar starts undefined $thevar["that"]=5; var_dump($thevar); // outputs // array(1) { // ["that"]=> // int(5) // } $thevar=null; var_dump($thevar); $thevar["that"]=5; var_dump($thevar...
5
lolphp
gibranois
41fqib
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|eols|><|endoftext|>
104
lolphp
tdammers
cz1zerv
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>> Not being able to use numeric strings as associative keys is intentional and docu...
69
lolphp
phpguy2
cz27uxm
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>> Not being able to use numeric strings as associative keys is intentional and docu...
30
lolphp
tdammers
cz2h1j2
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>> Not being able to use numeric strings as associative keys is intentional and docu...
24
lolphp
postmodest
cz23399
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>The fucky bit is that you can end up with dumb crap like $x = ["0"=>'zero',"3"...
22
lolphp
the_alias_of_andrea
cz2cc12
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>> Not being able to use numeric strings as associative keys is intentional and docu...
22
lolphp
redwall_hp
cz2e69x
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>The fucky bit is that you can end up with dumb crap like $x = ["0"=>'zero',"3"...
17
lolphp
Fs0i
cz2fysd
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>> Actually, Perl behaves the same as PHP in that regard. [Because Perl is a good e...
13
lolphp
tdammers
cz3p0iy
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>> Not being able to use numeric strings as associative keys is intentional and docu...
10
lolphp
gibranois
cz55d6j
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>> Not being able to use numeric strings as associative keys is intentional and docu...
9
lolphp
the_alias_of_andrea
cz24ew7
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>The fucky bit is that you can end up with dumb crap like $x = ["0"=>'zero',"3"...
8
lolphp
pilif
cz2po7m
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>> Not being able to use numeric strings as associative keys is intentional and docu...
8
lolphp
squiggleslash
cz3vis3
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>> Not being able to use numeric strings as associative keys is intentional and docu...
8
lolphp
the_alias_of_andrea
cz28d6h
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>> Not being able to use numeric strings as associative keys is intentional and docu...
8
lolphp
phpguy2
cz2e3aa
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>> Not being able to use numeric strings as associative keys is intentional and docu...
8
lolphp
pilif
cz34a55
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>> Not being able to use numeric strings as associative keys is intentional and docu...
7
lolphp
milordi
cz35tud
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>*"It's not a bug, because it's documented behaviour!"* - classic PHP.<|eor|><|eols|...
6
lolphp
ThisIsADogHello
cz2mmfl
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>The fucky bit is that you can end up with dumb crap like $x = ["0"=>'zero',"3"...
6
lolphp
hey_aaapple
cz2k611
<|sols|><|sot|>"It is so simple in Php, let me show you". "Mm. No it is broken". "Oh. It is just a contrived use case!"<|eot|><|sol|>https://www.reddit.com/r/PHP/comments/41bm7j/new_rfc_allow_specifying_keys_in_list/cz1qnca<|eol|><|sor|>> Not being able to use numeric strings as associative keys is intentional and docu...
6
lolphp
repie
3we125
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|eols|><|endoftext|>
102
lolphp
TheBuzzSaw
cxvkn4t
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|sor|>https://gist.github.com/maxrice/2776900#gistcomment-1200768 > Here is the list without Delaware TROLOLOLOLOL Too good.<|eor|><|eols|><|endoftext|>
52
lolphp
knaveofspades
cxvo4po
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|sor|>https://gist.github.com/maxrice/2776900#gistcomment-1200768 > Here is the list without Delaware TROLOLOLOLOL Too good.<|eor|><|soopr|>I'm not American and I missed th...
30
lolphp
knaveofspades
cxvr8jf
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|sor|>https://gist.github.com/maxrice/2776900#gistcomment-1200768 > Here is the list without Delaware TROLOLOLOLOL Too good.<|eor|><|soopr|>I'm not American and I missed th...
21
lolphp
postmodest
cxw8w5c
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|sor|>This is more "For the lols" than "lol, PHP". I can totally see a reason for things like $states = [ 'AL'=>'Alabama', 'AK'=>'Alaska', <...>]; And even $state...
19
lolphp
minimim
cxvnb7b
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|sor|>I don't get it.<|eor|><|eols|><|endoftext|>
14
lolphp
Wouter10123
cxvxhcn
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|sor|>This is gold<|eor|><|sor|>No, [this is gold](http://blog.wallstreetsurvivor.com/wp-content/uploads/gold.jpg).<|eor|><|sor|>No, that's a picture of gold. <|eor|><|eols|><...
14
lolphp
chimyx
cxvjqw0
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|sor|>This is gold<|eor|><|eols|><|endoftext|>
12
lolphp
tdammers
cxvqhup
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|sor|>https://gist.github.com/maxrice/2776900#gistcomment-1200768 > Here is the list without Delaware TROLOLOLOLOL Too good.<|eor|><|soopr|>I'm not American and I missed th...
12
lolphp
repie
cxvl9e3
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|sor|>https://gist.github.com/maxrice/2776900#gistcomment-1200768 > Here is the list without Delaware TROLOLOLOLOL Too good.<|eor|><|soopr|>I'm not American and I missed th...
10
lolphp
Drainedsoul
cxvwnpz
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|sor|>https://gist.github.com/maxrice/2776900#gistcomment-1200768 > Here is the list without Delaware TROLOLOLOLOL Too good.<|eor|><|soopr|>I'm not American and I missed th...
9
lolphp
Benutzername
cxwdrfu
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|sor|>>I had to retype them Capitalized and remove the territories. If only there was a tool that could do such a transformation for you.<|eor|><|eols|><|endoftext|>
8
lolphp
disclosure5
cxx5ety
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|sor|>I'm bookmarking this. Every time I ask an American where they are from, they'll say something like "I'm from PA" and then assume that of course, everyone knows that the ...
6
lolphp
suspiciously_calm
cxwc8rs
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|sor|>This is gold<|eor|><|sor|>No, [this is gold](http://blog.wallstreetsurvivor.com/wp-content/uploads/gold.jpg).<|eor|><|sor|>No, that's a picture of gold. <|eor|><|sor|>Th...
6
lolphp
maweki
cxvlgis
<|sols|><|sot|>One does not simply put US State Names & Abbreviations in a PHP Array<|eot|><|sol|>https://gist.github.com/maxrice/2776900<|eol|><|sor|>https://gist.github.com/maxrice/2776900#gistcomment-1200768 > Here is the list without Delaware TROLOLOLOLOL Too good.<|eor|><|sor|>Well, if it is his use case...<|eo...
5
lolphp
blueskin
1dfn0u
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|eols|><|endoftext|>
106
lolphp
n42
c9q3xez
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|sor|> "php" == true => true 1 == true => true "php" == 1 => false what "php" == 0 => true *what*<|eor|><|eol...
27
lolphp
mybadluck22
c9q5dqb
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|sor|>If there are any loosely typed languages that don't have this problem, I'd love to hear about them. Do, for example, ruby or javascript ...
16
lolphp
gearvOsh
c9q6trf
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|sor|> "php" == true => true 1 == true => true "php" == 1 => false what "php" == 0 => true *what*<|eor|><|sor...
14
lolphp
gearvOsh
c9pzqqh
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|sor|>The chart makes it look confusing, but it's quite easy (for the most part). 0, '0', false, null, "", array() -> false everything else -...
13
lolphp
bgeron
c9q75hb
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|sor|>true == "php" == 0 == false<|eor|><|eols|><|endoftext|>
11
lolphp
n42
c9q4am8
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|sor|>If there are any loosely typed languages that don't have this problem, I'd love to hear about them. Do, for example, ruby or javascript ...
11
lolphp
bjmiller
c9q0zv6
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|sor|>If there are any loosely typed languages that don't have this problem, I'd love to hear about them. Do, for example, ruby or javascript ...
11
lolphp
tef
c9q7hyt
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|sor|>this is a screenshot of the php manual.<|eor|><|eols|><|endoftext|>
10
lolphp
InconsiderateBastard
c9q054m
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|sor|>The chart makes it look confusing, but it's quite easy (for the most part). 0, '0', false, null, "", array() -> false everything else -...
9
lolphp
RedWingate
c9q5xub
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|sor|> "php" == true => true 1 == true => true "php" == 1 => false what "php" == 0 => true *what*<|eor|><|sor...
9
lolphp
RoundTripRadio
c9ys8y3
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|sor|> "php" == true => true 1 == true => true "php" == 1 => false what "php" == 0 => true *what*<|eor|><|sor...
9
lolphp
blueskin
c9qifi5
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|sor|>true == "php" == 0 == false<|eor|><|soopr|>My favourite: NULL < -1 < 0 < NULL and 0 > -1 .<|eoopr|><|eols|><|endoftext|>
8
lolphp
merreborn
c9q0mnj
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|sor|>If there are any loosely typed languages that don't have this problem, I'd love to hear about them. Do, for example, ruby or javascript ...
7
lolphp
djsumdog
c9uo47w
<|sols|><|sot|>Just came across this gem... PHP comparison result chart.<|eot|><|sol|>http://www.decontextualize.com/wp-content/uploads/2010/01/php-loose-comparisons.png<|eol|><|sor|>If there are any loosely typed languages that don't have this problem, I'd love to hear about them. Do, for example, ruby or javascript ...
7
lolphp
Serialk
7gmn5j
<|sols|><|sot|>PHP 7.2.0 comes with numerous improvements and new features such as Counting of non-countable objects<|eot|><|sol|>http://news.php.net/php.announce/229<|eol|><|eols|><|endoftext|>
100
lolphp
Serialk
dqk36sd
<|sols|><|sot|>PHP 7.2.0 comes with numerous improvements and new features such as Counting of non-countable objects<|eot|><|sol|>http://news.php.net/php.announce/229<|eol|><|soopr|>It actually [adds a warning when you try to do that](https://wiki.php.net/rfc/counting_non_countables), but the phrasing was so bad I coul...
45
lolphp
the_alias_of_andrea
dqk5jso
<|sols|><|sot|>PHP 7.2.0 comes with numerous improvements and new features such as Counting of non-countable objects<|eot|><|sol|>http://news.php.net/php.announce/229<|eol|><|sor|>I'm slightly amused the feature at the top of the list is a bug fix by me.<|eor|><|eols|><|endoftext|>
25
lolphp
carlos_vini
dqklsp6
<|sols|><|sot|>PHP 7.2.0 comes with numerous improvements and new features such as Counting of non-countable objects<|eot|><|sol|>http://news.php.net/php.announce/229<|eol|><|soopr|>It actually [adds a warning when you try to do that](https://wiki.php.net/rfc/counting_non_countables), but the phrasing was so bad I coul...
16
lolphp
walterbanana
dql0uhx
<|sols|><|sot|>PHP 7.2.0 comes with numerous improvements and new features such as Counting of non-countable objects<|eot|><|sol|>http://news.php.net/php.announce/229<|eol|><|sor|>I'm slightly amused the feature at the top of the list is a bug fix by me.<|eor|><|sor|>Thanks for contributing<|eor|><|eols|><|endoftext|>
11
lolphp
bart2019
dqkpa1d
<|sols|><|sot|>PHP 7.2.0 comes with numerous improvements and new features such as Counting of non-countable objects<|eot|><|sol|>http://news.php.net/php.announce/229<|eol|><|sor|>And they consider "Mcrypt extension removed" as an improvement. In that case there's plenty of other improvements that I can propose.<|eor...
9
lolphp
Serialk
dqmkne5
<|sols|><|sot|>PHP 7.2.0 comes with numerous improvements and new features such as Counting of non-countable objects<|eot|><|sol|>http://news.php.net/php.announce/229<|eol|><|sor|>And they consider "Mcrypt extension removed" as an improvement. In that case there's plenty of other improvements that I can propose.<|eor...
6
lolphp
Takeoded
dr9eljz
<|sols|><|sot|>PHP 7.2.0 comes with numerous improvements and new features such as Counting of non-countable objects<|eot|><|sol|>http://news.php.net/php.announce/229<|eol|><|sor|>And they consider "Mcrypt extension removed" as an improvement. In that case there's plenty of other improvements that I can propose.<|eor...
5
lolphp
Name0fTheUser
62ziz4
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|eols|><|endoftext|>
101
lolphp
Vakieh
dfq8v23
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>This sums up the entire reason PHP is shit, and why python and javascript are destroying it as the 'static typed languages are too difficult' languages of choice. Th...
27
lolphp
Iascan
dfqw8jt
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>Gettype Forhistorical reasons"double" is returned in case of a float, and not simply "float" Oh my<|eor|><|eols|><|endoftext|>
23
lolphp
bregottextrasaltat
dfrnwsu
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>This sums up the entire reason PHP is shit, and why python and javascript are destroying it as the 'static typed languages are too difficult' languages of choice. Th...
19
lolphp
Vakieh
dfsczl5
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>Gettype Forhistorical reasons"double" is returned in case of a float, and not simply "float" Oh my<|eor|><|sor|>They think if they document their shit functionalit...
17
lolphp
bregottextrasaltat
dfrn16d
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>This sums up the entire reason PHP is shit, and why python and javascript are destroying it as the 'static typed languages are too difficult' languages of choice. Th...
16
lolphp
Vakieh
dfrrydn
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>>javascript >serverside no thanks<|eor|><|sor|>Did you see this year's StackOverflow survey? NodeJS/Express is quite possibly on its way to being the industry stan...
11
lolphp
shvelo
dfri298
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>[site:php.net real](https://www.google.com/search?q=site%3Aphp.net+intext%3Areal#q=site:php.net+real&*)<|eor|><|eols|><|endoftext|>
10
lolphp
Vakieh
dfrnviw
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>This sums up the entire reason PHP is shit, and why python and javascript are destroying it as the 'static typed languages are too difficult' languages of choice. Th...
10
lolphp
Vacation_Flu
dfshshz
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>Gettype Forhistorical reasons"double" is returned in case of a float, and not simply "float" Oh my<|eor|><|sor|>They think if they document their shit functionalit...
7
lolphp
Vakieh
dfron2r
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>This sums up the entire reason PHP is shit, and why python and javascript are destroying it as the 'static typed languages are too difficult' languages of choice. Th...
7
lolphp
Vacation_Flu
dfulwp5
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>Gettype Forhistorical reasons"double" is returned in case of a float, and not simply "float" Oh my<|eor|><|sor|>They think if they document their shit functionalit...
7
lolphp
tfidry
dfvz56w
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>This sums up the entire reason PHP is shit, and why python and javascript are destroying it as the 'static typed languages are too difficult' languages of choice. Th...
6
lolphp
Pat55word
dfrn06v
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>Gettype Forhistorical reasons"double" is returned in case of a float, and not simply "float" Oh my<|eor|><|sor|>They think if they document their shit functionalit...
6
lolphp
TheSkyNet
dft4exb
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>This sums up the entire reason PHP is shit, and why python and javascript are destroying it as the 'static typed languages are too difficult' languages of choice. Th...
6
lolphp
pilif
dfroarp
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>Gettype Forhistorical reasons"double" is returned in case of a float, and not simply "float" Oh my<|eor|><|sor|>They think if they document their shit functionalit...
6
lolphp
theRealSteinberg
dg090n1
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>This sums up the entire reason PHP is shit, and why python and javascript are destroying it as the 'static typed languages are too difficult' languages of choice. Th...
6
lolphp
kr094
dfqlzwk
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>This sums up the entire reason PHP is shit, and why python and javascript are destroying it as the 'static typed languages are too difficult' languages of choice. Th...
5
lolphp
Vacation_Flu
dfuy3sq
<|sols|><|sot|>site:php.net intext:historical reasons<|eot|><|sol|>https://www.google.com/search?q=site%3Aphp.net+intext%3Ahistorical+reasons<|eol|><|sor|>> Fix it in the next major breaking release, and it's up to developers to properly test their shit. Like Python 3? 10 years after it came out, 2.7 is still the most...
5
lolphp
SerdanKK
d4o2v9
<|sols|><|sot|>PHP is whitespace insensitive, except when it isn't.<|eot|><|sol|>https://i.redd.it/z4uixvzsssm31.png<|eol|><|eols|><|endoftext|>
98
lolphp
nikic
f0f3h3m
<|sols|><|sot|>PHP is whitespace insensitive, except when it isn't.<|eot|><|sol|>https://i.redd.it/z4uixvzsssm31.png<|eol|><|sor|>Whitespace insensitive means that multiple whitespace characters can be collapsed into one. Not that whitespace can be removed entirely. Consider a trivial case like `return foo;`. Replacing...
50
lolphp
SirClueless
f0f7cz2
<|sols|><|sot|>PHP is whitespace insensitive, except when it isn't.<|eot|><|sol|>https://i.redd.it/z4uixvzsssm31.png<|eol|><|sor|>Whitespace insensitive means that multiple whitespace characters can be collapsed into one. Not that whitespace can be removed entirely. Consider a trivial case like `return foo;`. Replacing...
16
lolphp
SerdanKK
f0enq30
<|sols|><|sot|>PHP is whitespace insensitive, except when it isn't.<|eot|><|sol|>https://i.redd.it/z4uixvzsssm31.png<|eol|><|soopr|>PhpStorm doesn't catch this. Half of the online sandboxes I tested displayed the above behaviour (e.g. [http://phpfiddle.org/](http://phpfiddle.org/)) and the rest threw an error.<|eoopr...
13
lolphp
timmyotc
f0ezw1u
<|sols|><|sot|>PHP is whitespace insensitive, except when it isn't.<|eot|><|sol|>https://i.redd.it/z4uixvzsssm31.png<|eol|><|sor|>Thats because you are using the wrong syntax for if statements in html When using : <?php if (true): ?> <div>Hello</div> <?php endif ?> <?php if (false): ?> <div>SECRE...
13