Skip to main content
Stack Overflow
  1. About
  2. For Teams

PHP Collective

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

Pinned content

View all 3 collections

PHP admins have deemed these posts noteworthy.

Pinned
35 votes
9k views

Common Mistakes to Avoid in PHP

A list of real issues most beginners encounter when using PHP.
Sasha's user avatar
Sasha
  • 101
Pinned
62 votes
6k views
2 minute read

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
20 views

fetch specific data from xml content using php

I get result as xml content like the following I want to fetch Price at ProductCategory Name="register" and Price Duration="1" <?php $url="https://api.domain.com/xml....
0 votes
0 answers
28 views

PHP8.4 Doctrine form not filtering item list with multiple checkbox inputs

I have a table of Properties. I have a table of Property Features. These two are ManyToMany relationship with the resulting table PropertiesFeatures. I have a form with checkboxes of features which I ...
0 votes
0 answers
15 views

WordPress REST API: HTML content loses styling when Elementor is active

Stuck on an automation issue and hoping someone here has dealt with this. Setup: n8n automation that generates HTML content (articles in Hebrew) Sending to WordPress via REST API WordPress site ...
-3 votes
0 answers
157 views

Why are these simple MYSQL update statements failing

I have been coding php for years, but today I have encountered a problem I have never seen before. Some very simple update statements are failing -- or rather instead of updating, they are replacing ...
0 votes
0 answers
70 views

Replacing "Read more" text on the buttons of post query loop (WordPress archive page)

I tried to replace "Read more" text on the buttons at the end of each post in the post query loop, e.g. archive page, using 3 versions of codes below. None of them worked, the text still ...

Learn something new
These are the most recent articles in PHP Collective
3 votes
395 views
9 minute read

Quick guide to Laravel package development

Contents Introduction Types of packages Characteristics of a package The Laravel package! Components of a Laravel package Example of a Laravel package Creating your Laravel package 1- Package ...
3 votes
968 views
2 minute read

Properly removing API from Laravel project

Sometimes a development team may decide to remove all API functionality from a Laravel project for various reasons, such as: No longer needing any API, and shifting focus to web application with ...
12 votes
3k views
1 minute read

How to trim &nbsp; (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
25 votes
57k views
3 minute read

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 ...
62 votes
6k views
2 minute read

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

AltStyle によって変換されたページ (->オリジナル) /