php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "new keyword"

In the provided PHP script for file searching, what is the purpose of the 'function' keyword at the beginning of the function definition?

The 'function' keyword in PHP is used to declare a new function. In the provided script, the 'function' keyword is necessary to define the function th...

How can one effectively use the global keyword in PHP to access variables outside of a function scope?

When you want to access variables defined outside of a function within the function scope in PHP, you can use the `global` keyword. This keyword allow...

What are the differences in including PHPMailer in PHP versions prior to 8.1 compared to the new method using namespaces and the "use" keyword?

In PHP versions prior to 8.1, including PHPMailer required using the `require` or `include` statements to import the necessary files. However, with th...

How can you display only news articles with a specific keyword, like "lol," in PHP?

To display only news articles with a specific keyword like "lol" in PHP, you can use a combination of PHP and SQL to query your database for articles...

What does the deprecated message "Assigning the return value of new by reference is deprecated" mean in PHP?

The deprecated message "Assigning the return value of new by reference is deprecated" in PHP means that assigning the result of a new object instantia...

Showing 6 to 10 of 8564 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1712 1713 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.