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
-
C0D4681466yWithout testing it, my only assumption is the b is attempting to be used as a define() which doesn't exist and as these don't throw errors - only warnings, the code still outputs.
-
C0D4681466y@Grocker PHP7 still has backwards compatibility for some things. It's just how php is and always will be until these old things are actually removed and exceptions are thrown to actually deal with these things instead of logging an error.
-
olback109816y@Grocker I couldn't find any PHP docs about it. But it looks like c++ string literals. https://en.cppreference.com/w/cpp/...
Edit: A similar thing exists in python I think. -
C0D4681466y@olback that's interesting.
I was thinking it may have been a binary thing when @Grocker said it doesn't work for other letters
Here's a SO answer to your question.
https://stackoverflow.com/a/4749553
Related Rants
Can someone tell me why echo b"Test"; is working in php ?
question
bugs
php
bug
echo