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
Can Extjs > v7.0 use is WITHOUT install sencha or anything?
Azure App Service (PHP 7.x) showing “No Request” after cloning, both original and cloned apps not responding
how to make a html contact form send message using html
Symfony UX LiveComponent file upload works only on first request
Doctrine referenceone gives only superclass
Looking for an extra challenge?
View all bountied questionsThese questions have a bounty on them
Why do my POST operations on a subresource update the same entry instead of creating new ones?
How to run tests of the same phpunit testcase class in parallel with ParaTest?
Recommended answers
View all recommended answersThese answers have been recommended
PHP-cli running with curl_init but not with file_get_contents, how to enable?
There is no such INI var as user_agent. There is a stream context option of that name, though: $opts = [ 'http' => [ 'user_agent' => 'Mozilla/5.0' ] ]; $context = ...
Populate an array with strings of words where each element is one word less than the previous
I would not try to salvage your coding attempt; I find it too convoluted relative to the simplicity of the task. Basically, you need to use a loop to truncate the input string before its last space ...
autoformat with CS Fixer exited with non-zero code [closed]
PHP External Formatter: Process exited with non-zero code Validate the configuration in Settings > PHP > Quality Tools > PHP CS Fixer by opening your current Configuration by clicking the ...
How can I transform large nested PHP arrays immutably without creating expensive deep copies?
You might want to consider classic PHP programming: $data = ['users' => [ ['id' => 1, 'name' => 'Alice', 'active' => true], ['id' => 2, 'name' => 'Bob', 'active' => false],...
Composer: how to use local symlinks for packages in development but Git versions in production
Messing about and faking local dependencies is never going to be maintainable, nor is locally modifying dependant libraries. Make a new branch in each library repo for relevant modifications, eg: ...
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