php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "bad practice"

Why is using "$var = "$obj->prop";" considered bad practice in PHP programming?

Assigning a property of an object directly to a variable using "$var = $obj->prop;" is considered bad practice in PHP programming because it breaks th...

How can the use of "*" in SQL queries be considered bad practice, and what are the advantages of explicitly specifying column names?

Using "*" in SQL queries can be considered bad practice because it retrieves all columns from a table, which can lead to unnecessary data retrieval an...

In what situations is it considered bad practice to use "SELECT * FROM" in SQL queries, and what are the potential drawbacks?

Using "SELECT * FROM" in SQL queries is considered bad practice when you only need specific columns from a table because it retrieves all columns, pot...

Is the practice of counting occurrences of bad words an effective method for filtering inappropriate content?

Counting occurrences of bad words can be one method for filtering inappropriate content, but it may not catch all instances of inappropriate language....

Does using $this-> in a Singleton class violate the pattern or is it considered bad practice?

Using `$this->` in a Singleton class is not recommended as it can potentially violate the pattern by allowing multiple instances to be created. It is...

Showing 16 to 20 of 10000 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1999 2000 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.