How-to articles, tricks, and solutions about PHP
Save image from url with curl PHP
To save an image from a URL using PHP and cURL, you can use the following function:
search and replace value in PHP array
In PHP, you can use the array_map() function to search and replace values in an array.
Secure hash and salt for PHP passwords
To securely hash and salt passwords in PHP, you can use the password_hash function.
Select records from today, this week, this month php mysql
To select records from today, you can use the following code:
selecting unique values from a column
To select unique values from a column in PHP, you can use the array_unique function.
Send value of submit button when form gets posted
In PHP, you can access the value of a submit button when a form is posted in the following way:
Setting POST variable without using form
To set the value of a POST variable in PHP, you can use the following code: