php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "DELETE"

What is the recommended syntax for a delete statement in PHP when using MySQL?

When using PHP to delete data from a MySQL database, the recommended syntax for a delete statement is to use the `DELETE FROM` query along with the `W...

What potential issues can arise when trying to delete a folder and its contents using PHP?

When trying to delete a folder and its contents using PHP, potential issues can arise if the folder is not empty or if the script does not have the ne...

What is the PHP function used to delete files?

To delete files in PHP, you can use the `unlink()` function. This function takes the file path as a parameter and removes the file from the server. It...

How can PHP be used to recursively delete files within a directory?

To recursively delete files within a directory using PHP, we can use a combination of `scandir()` to get a list of files and directories within the ta...

How can PHP be used to recursively delete files within a folder before deleting the folder itself?

To recursively delete files within a folder before deleting the folder itself, we can use PHP's recursive directory iterator along with unlink functio...

Showing 21 to 25 of 1824 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 364 365 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.