php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "calling methods"

What are the advantages and disadvantages of using file_get_contents versus Curl for fetching external data in PHP applications?

When fetching external data in PHP applications, both file_get_contents and Curl are commonly used methods. file_get_contents is simpler to use and re...

What is the difference between $instance and $this->instance in PHP?

The main difference between $instance and $this->instance in PHP is that $instance is a local variable that holds a reference to an object instance, w...

What is the best practice for structuring a class that interacts with a database using PDO in PHP?

When structuring a class that interacts with a database using PDO in PHP, it is best practice to separate your database logic from your application lo...

How can passing an object method as a callback in PHP be achieved?

When passing an object method as a callback in PHP, you need to use an array where the first element is the object instance and the second element is...

How can I avoid having to re-establish the database connection every time I call a function in my PHP class?

To avoid having to re-establish the database connection every time you call a function in your PHP class, you can establish the connection once in the...

Showing 9936 to 9940 of 10000 results

‹ 1 2 ... 1985 1986 1987 1988 1989 1990 1991 ... 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.