- Merge Two Arrays in PHP
PHP array_merge() Function PHP array_merge function is an in-built function in PHP, which is used to merge or combine one or multiple arrays i ...
- PHP move_uploaded_file() Function
Description The move_uploaded_file() is a PHP function that is used to move an uploaded file to a new destination. Notes: Before moving th ...
- PHP preg_match() Function
The preg_match() function is used to match strings with regular expressions. This function searches for a pattern in a string and returns true if the ...
- array_map() Function in PHP
PHP array_map() is an in-built function in PHP, which is used to alter all the elements of one or more arrays according to user-made function. Th ...
- Mysqli_Num_Rows() Expects Parameter 1 To Be Mysqli_Result
While working with PHP and MySQL, we come across an error called mysqli_num_rows() expects parameter 1 to be mysqli_result. We will take a closer look ...
- Object of Class mysqli_result Could Not be Converted to String Error
It is common for programmers to encounter an error “Object of class mysqli_result could not be converted to string”. This error occur ...
- How to Check if String Contains Specific Word or Substring in PHP?
Sometimes, you may want to check whether a string contains a specific word or substring. This is because you may have to perform some operation on tha ...
- What is 'mysqli_fetch_array() expects parameter 1 to be mysqli_result' Error?
In PHP, a popular error called “mysqli_fetch_array() expects parameter 1 to be mysqli_result” is often encountered. This happens when the ...
- What is 'mysqli_query() expects at least 2 parameters, 1 given' Error?
The “mysqli_query() expects at least 2 parameters, 1 given” error is encountered when the mysqli_query() method does not receive proper pa ...
- PHPMailer: Called Mail() without being connected error
While working with PHPMailer class, you might encounter an error – Mailer error: The following From address failed: abc@gmail.com: Called M ...
- PHP Magic Methods
What are Magic Methods? Magic methods, as the name suggests, are unique methods meant for particular purposes. These methods have a double-undersco ...
- Difference between Cookies and Sessions
Generally, we need or use cookies and sessions to store user information as a global constant for the whole website. In addition to this feature, sess ...
- Redirect to Another Page in PHP
The redirection from one page to another is one of the common practices among PHP users. PHP is a popular, open-source, server-side, ge ...