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
Downloading wordpress core using wp-cli command
Gedmo/Doctrine Tree Extension Cannot use object as array
How to integrate a custom search option with dynamic filelds using CodeIgniter 4 master data listing UI?
Instant response of the Like/Dislike buttons using Alpine.js in Livewire 3
How to handle authentication and authorization for multiple models (customer & staff) in Laravel with Inertia.js and Vue.js?
Recommended answers
View all recommended answersThese answers have been recommended
Save Drop Box Multiple in PHP in more then one row (In array)
The mistake seems to be giving all your <select boxes have the same name. The browser will just submit all selections with that name as a single, flat list of values, regardless of whether each ...
php8 is there a way to use both named args and variable args in a function call?
you probably would have been able to summon more insightful diagnostics with the following variant: foo(vargs: 1, ...[2, 3]); it yields: PHP Fatal error: Cannot use argument unpacking after named ...
remove XML from SOAP responses
As you have already found out, the moment you return from the notify() function, the SoapServer will create a SOAP response with the result. Rule: Given the notify() function, when it is returning, ...
Laravel Auth::user() returns null on 404 error page, even when user is logged in in laravel 10
What you observe is because the middleware is not loaded globally by default. The rationale is to load as little as necessary. For example, if there is an error with the workflow of your application's ...
What is an efficient way of parameter overloading in php [closed]
just found out there is a case where PHP supports polymorphic behaviour, perhaps fitting for this scenario: given a ?DateTime property, when hooked, then the set hook can accept null|string|...
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