PHP Collective
Pinned content
View all 3 collectionsPHP admins have deemed these posts noteworthy.
Common Mistakes to Avoid in PHP
- 101
Start learning PHP — Useful resources for beginners and advanced
Can you answer these questions?
View all unanswered questionsThese questions still don't have an answer
Show consent to receive ads in WooCommerce emails
Show consent to sending ads on the Thank You page in WooCommerce
How to start Selenium standalone server from a PHP script?
Upload multiple files when placing a WooCommerce order
Why do I have missing p tags from acf wysiwyg field?
Looking for an extra challenge?
View all bountied questionsThese questions have a bounty on them
Upload multiple files when placing a WooCommerce order
Recommended answers
View all recommended answersThese answers have been recommended
PhpStorm adding script to my GET responses
Does anyone know where this script is coming from and how I can disable it? I've also tried disabling the debugger in both my browser and in PhpStorm. The overall behaviour can be completely 1 ...
In PHP PSR-12, Is it allowable to align equal signs in variable assignments?
It is allowable, however PSR-12 requires you to extend your projects coding standard to define your readability requirements in this specific regard. E.g. when a project coding standard requires to ...
How to get folders and their subfolders with their paths?
Very nice question, thanks for asking it. You already linked the reference to trees, and in both, the input (tree) and output (solution) we can see how each entry's path can be resolved in sequence, ...
What's the purpose of using a @method phpdoc annotation for an interface instead of a method signature
What's the purpose of using a @method annotation instead? What does it achieve? It keeps the method signature out of the interface. Might sound counter-indicative, but spares you to create multiple ...
How to tell JetBrains PhpStorm to inspect required PHP files?
PhpStorm "normally" supports that1, but there is probably a caveat here: The file must be in the project. As you use an abolute path, "/path/to/header.php", PhpStorm will likely &...
See what's trending
View all trending questionsThese are the most active questions in PHP Collective
How can I prevent SQL injection in PHP?
How do I check if a string contains a specific word?
Reference Guide: What does this symbol mean in PHP? (PHP Syntax)
How do I get a YouTube video thumbnail from the YouTube API?
Deleting an element from an array in PHP
Quick guide to Laravel package development
Properly removing API from Laravel project
How to trim (or non-breaking space) in PHP?
Evolution of Type Declarations in PHP
Start learning PHP — Useful resources for beginners and advanced
Simply submit a proposal, get it approved, and publish it.
See how the process works