Pinned content
View all 3 collectionsPHP admins have deemed these posts noteworthy.
Common Mistakes to Avoid in PHP
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
Hubleto PHP framework fresh install fails with "Cannot redeclare class Hubleto\App\Community\Discussions\Extendibles\AppMenu"
How does routing work in custom modules in Webtrees?
Cannot change fonts in MasterStudy Front-end Course Builder
Varnish Error 503 VCL failed when url path ends with %
Woocommerce checkout hooks lifecycle with external API call for custom shipping rates
Recommended answers
View all recommended answersThese answers have been recommended
PHP Variable Naming
Well this can be done with variable variables, but only like this: $tbl_Fld_type = ${"tbl" . $_tbl . "Fld_type"}; $tbl_FormTypes = ${"tbl" . $_tbl . "FormTypes"...
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 ...
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