Pinned content
View all 3 collectionsPHP admins have deemed these posts noteworthy.
Start learning PHP — Useful resources for beginners and advanced
Common Mistakes to Avoid in PHP
Can you answer these questions?
View all unanswered questionsThese questions still don't have an answer
Laravel Handle multiple collumns that have a relationship with a model
PHP dependency injection and PSR LoggerInterface
Get latest entries/posts from categories on many to many relationship Laravel
fopen and stream_select not working after PHP 8 upgrade
Create a valid JSON file with Monolog JsonFormatter
Recommended answers
View all recommended answersThese answers have been recommended
Example .gitlab-ci.yml for Laravel 12 with MariaDB that seeds database before running php artisan test
When you execute the end-to-end test integrating your code with the database migrations and database handling, you need to set-up (provision) the whole test-system first. By default examples the ...
My own OAuth server for authentication on my client application with the ROPC flow
Not sure on what your motivations are to develop your own OAuth2 server capable of an ROPC flow. If you own the server as well as the client application does your OAuth2 server implementation need ...
Changes to the XAMPP httpd main server config file to alter home path for PHP files
Provide ad-hoc configuration and use the production defaults in case of not set: https://www.php.net/get_cfg_var
MySQL Eloquent ORM - where clause: value could be null
You could always do if ($value === null) { $query->whereNull('column'); } else { $query->where('column', $value); } (as Gemini suggests), but then you're doing what the Framework is already ...
How to change the title of the billing field?in Woocommerce
You can do this add_filter( 'gettext', 'change_billing_title', 20, 3 ); function change_billing_title( $translated, $text, $domain ) { if ( $domain === 'woocommerce' ) { if ( $text == '...
See what's trending
View all trending questionsThese are the most active questions in PHP Collective
How can I prevent SQL injection in PHP?
Reference Guide: What does this symbol mean in PHP? (PHP Syntax)
How do I check if a string contains a specific word?
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