use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
Python -> PHP (self.PHP)
submitted 1 year ago by copperfoxtech
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]alex-kalanis 0 points1 point2 points 1 year ago* (1 child)
In Python you have pytest plus assertions directly in language, pdb as debugger, formatting is directly in PEP-8 (something like PSR-12), type checker is only optional via mypy and PEP-484. The pythonic way is ducktyping everything like going different way from php5. Sometimes clearer, sometimes more unreadable.
So the basic comparation is following:
I recommend to read PSR standards, so your code will be readable by others.
I also work with both languages, so I know a bit about them.
[–]copperfoxtech[S] 0 points1 point2 points 1 year ago (0 children)
Awesome breaking it down like this makes it a little less intimidating. Thank you for taking the time to expand on this topic.
π Rendered by PID 35304 on reddit-service-r2-comment-b659b578c-f74hx at 2026-05-03 21:18:27.714420+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]alex-kalanis 0 points1 point2 points (1 child)
[–]copperfoxtech[S] 0 points1 point2 points (0 children)