r/lolphp • u/pirogoeth • Jul 27 '15
r/lolphp • u/jamwaffles • Nov 07 '13
PHP is the only language that will bankrupt Microsoft
r/lolphp • u/the_alias_of_andrea • Jan 15 '16
Does anyone else think PHP can become the next Apple?
r/lolphp • u/Zenmaster13 • Nov 20 '15
Using implode() on an array of booleans will cast TRUE to 1 and FALSE to ''
r/lolphp • u/[deleted] • Dec 04 '15
Abstract Syntax Tree! Lil' PHP has grown up and started college
r/lolphp • u/[deleted] • Jul 04 '12
PHP is much better than you think
fabien.potencier.orgr/lolphp • u/shitcanz • Apr 24 '18
They made fun of PHP, now lets bash node as a retaliation
r/lolphp • u/allthediamonds • Jun 16 '14
"This is the best way to perform an SQL query" PHP's manual, on mysql_query (!)
r/lolphp • u/Takeoded • Aug 05 '17
password_hash requires the 2nd argument, although it has a default value... wtf
r/lolphp • u/saintpetejackboy • Dec 13 '24
Pro tip: if you include() your .js files, and wrap the include in <script> tag, you can use PHP variables and logic inside of JS.
r/lolphp • u/feketegy • Aug 10 '19
Making the language dynamically and strictly typed at the same time. It’s a proposal for now.
wiki.php.netr/lolphp • u/ealf • Sep 23 '13
array_product() returns the product of the values in an array. Guess what it returns if the array is empty.
r/lolphp • u/saintpetejackboy • Feb 01 '20
PHP does not do random
I posted a bug report many years ago. If it was fixed, nobody seems to recognize it.
My original project was trying to see if there was a pattern in "random noise", so I generated colored dots on the screen, with random colors and x,y coordinates. After many generations, the values became "stuck".
According to other people, this is because I do not understand entropy, this is not a PHP problem, and that supposedly my code was bad (even though I shopped it around to many people and reported the bug, in 2006).
I could test if the bug still exists, but here is my original post:
https://bugs.php.net/bug.php?id=37409
The response I got on IRC was essentially that it was off-topic, not a problem with PHP, and merely was my inability to comprehend entropy.
Any programmer out here want to generate a ton of randomly positioned, randomly colored dots, on a white background, to determine this? I don't have much time to do it now, but not only does this seem to be an "accepted" bug, but there are also known workarounds and solutions (such as changing the seed sporadically), which means I am not the only one who encountered this and the PHP rand functions did not (or may not) work as expected.
r/lolphp • u/ajmarks • Oct 09 '13
vBulletin lets just anybody make a new admin account
r/lolphp • u/Takeoded • Jan 28 '21
can somebody explain why the hell shell_exec() doesn't have an `int &$return_code = null` ?