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
Problem with ACF Date Range and Repeater Integration in WooCommerce
Microsoft Graph API Authorization Error: 'Invalid size of Code_Challenge parameter.'
How to change "ownerRecord" in RelationManager in Filament 3?
React Expo push notification, sending notification to required channelId from PHP
Accented chars in dates
Looking for an extra challenge?
View all bountied questionsThese questions have a bounty on them
Sentry Queue integration with Symfony messenger
Recommended answers
View all recommended answersThese answers have been recommended
print numbers between two ranges in PHP? [closed]
For a solution that is both efficient and easy to read you could use something like this: foreach ([...range(1, 48), ...range(114, 118)] as $number) { echo "$number "; } This makes use ...
PHP forach array with objects
As per its documentation, the DateTime class doesn't have any public properties. You need to use the documented getTimezone() function instead, if you want to retrieve the timezone. Since the timezone ...
form serialize is not working after ajax request
Your form data isn't serialising because let $form = $button.closest('form'); doesn't match an object, therefore $form is empty. It doesn't match anything because the button isn't inside the form. ...
How to pass data to a webserver [closed]
index.php: <?php declare(strict_types=1); $encoded = json_encode($_GET ?? null); assert(is_string($encoded)); is_string($encoded) && error_log($encoded); You find it in the error log you'...
Laravel 11: Is it possible to force PHPUnit to trigger / "press" CTRL+C to simulate interruption of an artisan command?
With pcntl_signal() you register the signal handler. with posix_kill() you can send a signal (cf. kill(1), full example on the PHP manual pcntl_signal page). Now if you have the process id (PID) of ...
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
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