When writing PHP scripts that need to deal with the file-system to change the current directory, creating new directory, change the root directory, gets the current working directory, list files and directories inside the specified path and many more. For this, PHP provides a number of built-in directory functions that can be used to perform […]
PHP
Here you will find useful PHP tips and tutorials.
8 Useful PHP Functions You Need to Know
If you are familiar with the basics of PHP, then you’re surely familiar with the built-in PHP functions. PHP is a very rich in terms of built-in functions. It has more than 1000 built-in functions. These functions can increase efficiency and speed-up development if uses smartly.
10 little known but useful PHP functions
PHP is a very rich with its built-in function and most of us aware of them. There are many functions which are not very well known but are really very useful. In this article, I have listed and explained few little known but really useful PHP functions.
Download and save images from a page using cURL
cURL, and it’s PHP extension libcURL which allows to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, […]
Remove an item from comma separated string using PHP
Sometimes we need to remove specific item from comma separated string. Here is a running PHP function to remove an item from a comma-separated string. The function will remove the selected items from the string and return the remaining parts of the string.