Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
rant1ng44576y@njpugh90 oh now, I was reading the docs, going wtf
like, my eyes switched the arguments before the signal got to my brain, type of thing
hate that -
Root797796yIt's ($haystack, $needle) for this particular function iirc? 😕
Screw PHP and its inconsistencies. -
rant1ng44576y@Root yeah, sometimes its the other way around isn't it
thats why i got mixed up, cuz I just finished using another function where the order was reversed
arg
anyway whatever, just pet peeve, waste of an hour on an amateur problem -
Root797796y@rant1ng It's one of many reasons why I consider the language itself amateur and terrible.
-
rant1ng44576y@Root well just, never noticed that..
if I were php I'd at least have some consistency there
wonder what else isn't so organized under the hood
but then wtf I didn't create a programming language, now did I, maybe they got tired -
Root797796y@rant1ng There are so so many issues and internal inconsistencies. I don't want to get into it again, though, especially on my phone.
The language has gotten better in recent versions, but many of the underlying design flaws cannot be fixed without rewriting most of it. -
@rant1ng they do try to fix some methods but to keep support for older scripts. So some methods accept the parameters in two orders.
-
Kaji20976yYou’re also missing a semicolon in line 1.
Had an issue yesterday where filter_var() would periodically throw warnings because it decided to treat FILTER_VALIDATE_DOMAIN as a string literal instead of a constant, even though there were no quotes involved.
Still haven’t figured out why *that* one happens... -
Just try to look at php.net more often if you are on Chrome you can even type php.net and then hit tab, after that you can search for a native function
Once you hit enter you get the native function's documentation
Related Rants
WHO CAN SPOT THIS STUPID PHP ERROR!
$string = "something.com"
if(strpos(".", $string))
echo " yep, there's a period";
else
echo "nope, fuck you there isn't";
output: "nope, fuck you there isn't"
me: wtf ??? fucking wasting my time on this fucking stupid tiny fucking error, goddamnit and each refresh takes 15 seconds because it involves calling all these apis from localhost, gmail, etc. arggg...
...for an hour, until I smacked my head so hard I'm in the hospital for a concussion
I hate when that happens.
Time to take a break.
rant
syntax
stupid errors
php