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
ziggy-js cannot retrieve the current route correcly while using the same route name for different HTTP methods in Laravel 12
How to extend WooCommerce get_price_html() to include a parameter for custom field based pricing?
GitLab Project Webhook URL "Invalid URL Given" (422), but Works as System Hook
How to create a repeater field and save it with WooCommerce Settings API?
Using own Pages model as reference within another model does not work
Looking for an extra challenge?
View all bountied questionsThese questions have a bounty on them
UPS REST API - Tracking vs Track by Reference
Recommended answers
View all recommended answersThese answers have been recommended
PHP SoapClient using white spaces [duplicate]
You cannot stuff the attribute (a="123") into the array itself To bind the attribute use, 'MOAttributes' => [ 'gsm:setSubscription' => [ '@attributes' => [ 'a' => '...
Laravel API Testing index and show data fail at assertJsonStructure of Nested Json back-and- fort
The issue isn’t Laravel or PHPUnit. It’s your test. # for array of books 'data' => [ '*' => [ 'id', 'book_code', .... ] ] # single book object 'data' => [ ...
I want to keep the login password encrypted in the Payload without using JS file when using the Yii 1 framework [duplicate]
As long as you use HTTPS on your server then the whole request, including the password, will be encrypted anyway. The password will be a secret from everyone except the one who typed it in. Therefore ...
Rounding floats / decimals in e-commerce (PHP 8.3 and Laravel 11)
When you force‐round every number "up" or "down", it introduces minor mismatches in your case. You have to drop this and use ROUND HALF UP function price_format(float $price): ...
PHP Reference Map - Const vs Static
For Your Information static $map const MAP Mutability Mutable at runtime Immutable — you can’t change it once defined Performance Requires a runtime property lookup Stored in OPcache at compile-time ...
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