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
Nginx redirect all urls to route.php
Unable to parse all kind of subtype while fetching emails with imap from WorkMail
unable to curl / copy /File_get_contents in php https://www.nation.com.pk/latest
When I enter the command php artisan install:api, in the terminal I get this error
Trouble about upload APK file in Codeigniter 3
Looking for an extra challenge?
View all bountied questionsThese questions have a bounty on them
Change password on ESXi with REST API
Recommended answers
View all recommended answersThese answers have been recommended
Push entries into a result array from deepest nested loop, but also push an entry when deepest loop is not reached
You'll need to intercept your empty order items and structure the entry as you see fit for the result array. You could write continue at the end of the if block, but the foreach() on the menu_options ...
Missing required parameter for update route laravel 11
In Form <form action="{{ route('updatetransaksi', ['id' => $id_penjualan]) }}" method="POST"> use route() instead of url(). URL route won't automatically resolve named ...
Dynamic menu building and navigation using URL parameters PHP
First, let me bring to your attention that the $activeItem parameter of generateNavMenu() is never used -- that indicates that a re-think and some editing is required. Second, when a pg option is ...
Why does my PHP ternary operator return "three" instead of "two" in versions < 5.3? [duplicate]
Your code is quite unreadable, it hurts my brain. Make it readable and you probably also solve any problems you have. How about this: $number = 2; switch ($number) { case 1 : echo "one";...
Event Color based on Resource / Room Color - Fullcalendar.js PHP MySQL
As per the eventDisplay documentation, by default you will only see the dots on timed events in the dayGrid view, not the coloured rectangle. If you want to see that coloured rectangle in the dayGrid ...
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