Skip to main content
The 2024 Developer Survey results are live! See the results

PHP Collective

A collective where developers working with PHP can learn and connect about the open source scripting language.
1.5m Questions
+272
11k Members
+105
Contact

Pinned content

View all 3 collections

PHP admins have deemed these posts noteworthy.

Pinned
23 votes
5k views
Collection

Common Mistakes to Avoid in PHP

A list of real issues most beginners encounter when using PHP.
Sasha's user avatar
  • 101
Pinned
44 votes
3k views
2 minute read
How-to guide

Start learning PHP — Useful resources for beginners and advanced

Start learning PHP — Useful resources for beginners and advanced! If you're wondering where to start from learning the PHP language or needing some more knowledge to deep dive into the language, you ...
RB Projects's user avatar

Can you answer these questions?

View all unanswered questions

These questions still don't have an answer

0 votes
0 answers
8 views

Problem with ACF Date Range and Repeater Integration in WooCommerce

I am using ACF to create fields integrated with WooCommerce. I am struggling to manage the tour status for each period in the Week Days mode: The tour has 2 modes: Week Days and Exact Dates. A tour ...
0 votes
0 answers
17 views

Microsoft Graph API Authorization Error: 'Invalid size of Code_Challenge parameter.'

I am trying to generate an access token via a PKCE flow to call the Microsoft Graph API. I am following this msdoc : Microsoft identity platform and OAuth 2.0 authorization code flow - Microsoft Entra ...
0 votes
0 answers
12 views

How to change "ownerRecord" in RelationManager in Filament 3?

It is a basic RelationManager example of PostResource: public static function getRelations(): array { return [ MediaRelationManager::make() ]; } $post->media() (morphMany). ...
-2 votes
0 answers
15 views

React Expo push notification, sending notification to required channelId from PHP

https://exp.host/--/api/v2/push/send { "to": "ExponentPushToken[***************]", "title": "Test Notification", "body": "This is a test message.&...
0 votes
0 answers
37 views

Accented chars in dates

I've a problem in formatting dates in it_IT locale. I've a customer with a site running on PHP 8.0.3, and due to some certification issues (this customer has to mantain ISO27001 certification) I've ...

Looking for an extra challenge?

View all bountied questions

These questions have a bounty on them

1 vote
1 answer
48 views
+50

Sentry Queue integration with Symfony messenger

I've been trying to set up Symfony Messenger with Sentry Queues for a while but without any luck. I cannot find any resources online related to this specific topic. I'm trying to use the example ...

Learn something new
These are the most recent articles in PHP Collective
4 votes
266 views
1 minute read
How-to guide

How to trim   (or non-breaking space) in PHP?

The main problem is the way trim() function works. One cannot reliably trim a substring using this function, because it takes its second argument as a collection of characters, each of which would be ...
Your Common Sense's user avatar
21 votes
56k views
3 minute read
Knowledge article

Evolution of Type Declarations in PHP

Introduction: PHP, being a dynamically typed language, traditionally allowed flexibility in variable types, providing both advantages and challenges in code maintenance and robustness. However, with ...
alkhatibdev's user avatar
44 votes
3k views
2 minute read
How-to guide

Start learning PHP — Useful resources for beginners and advanced

Start learning PHP — Useful resources for beginners and advanced! If you're wondering where to start from learning the PHP language or needing some more knowledge to deep dive into the language, you ...
RB Projects's user avatar