To retrieve a visitor’s country based on their IP address in PHP, you have a few options. Let’s explore some methods: Using Free Web Services: If you prefer a simple…
Php
Event calendar provides a user-friendly thanks to list events by dates. It helps the user to find the events quickly for a selected date. The event calendar may be a…
Parse domain name from URL is used in many cases within the web project. During this short tutorial, we’ll provide an easy code snippet to get domain name from URL…
We will discuss about how to update a record or data from MySQL database using laravel framework PHP. To update the data in mysql table UPDATE statement is used. We update the…
How to check Password Strength in PHP. When the user provides their account password, it always recommended validating the input. Password strength validation is very useful to see whether the…
Form Validation is a necessary process before the data entered in the form is submitted to the database.
Create a directory using PHP and MySQL. index.html CreateFolder.php
Generally, once we upload image enter PHP, the uploaded image is stored during a directory of the server and therefore the respective image name is stored into the database. At…
What is PHP? The PHP (Hypertext Preprocessor) is a server scripting language, used for making dynamic web pages. PHP is an open source software and it is free to download…
In CodeIgniter, the Model is used for the Database manipulation – fetch, insert, update, and delete records. If within the project there are multiple Models are available then it may…
Hi everyone in this tutorial we are going to see how to create Apply Promo code or Coupon code in Php using Ajax. here the complete 100% working code. index.php…
Change Date from dd/mm/yyyy to yyyy-dd-mm for MYSQL Friendly is simple. Possibly a more MySQL friendly format in some circumstances and Convert date from YYYY/MM/DD to DD.MM.YYYY (and from DD.MM.YYYY…
The substr_count() function is a built-in function in PHP which is used counts the number of times a substring occurs in a string. Note: This function does not count overlapped substrings….
The str_replace() function is an built-in function in PHP which is used to replaces any portion of a string with another string. This function is binary-safe. Note: This function is…
The strrev() function is an built-in function in PHP which is used to reverse strings. Syntax: string – This parameter is required. It specifies the string to reverse. Example:
The empty() function is an built-in function in PHP which is used to check whether a variable is empty or not. A variable is empty if it does not exist or if…
The isset() function is an built-in function in PHP which is used to check whether a variable is set or not. The isset() will return true if testing a variable…
The PHP strlen() is used to get the length of a string. It also includes the white spaces inside the string. Syntax: string – This parameter is required. It specifies the length…
The rtrim() function is a built-in function in PHP which is used to removes whitespace from the end of a string. Syntax string – This parameter is required. It specifies the…
The ltrim() function is a built-in function in PHP which is used to removes whitespace from the beginning of a string. Syntax string – This parameter is required. It specifies the…
The ucfirst() function is used to change the first character of a string to uppercase. Otherwise, We can use the strtolower() function in combination with the ucfirst() function, if you need to make only first…
The strtoupper() function is used to converts a string to uppercase. All other special characters or numeric characters in the string remains unchanged. This function is binary-safe. Syntax string –…
The strtolower() function is used to converts a string to lowercase. All other special characters or numeric characters in the string remains unchanged. This function is binary-safe. Syntax: string –…
We can use the PHP concatenation operator (.) to join or combine two strings together in PHP. This operator is exactly designed for strings. There are two string operators :…
The explode() function is an built-in function in PHP which is used to break or split a string into an array by a separator string like comma, hyphen, space etc. This…
The implode() or join() is a built-in function in PHP and it is used for creating a string by joining the elements or values of an array with a glue string like…
strcmp() function is used to compare two strings in php. This function is case-sensitive and binary-safe. If we need case-insensitive comparison, we can use the strcasecmp() function. Syntax string1 – This parameter…
There’s no exact function to append a string in PHP. But PHP concatenation assignment operator (.=) is used to append a string with another string. There are two string operators : Concatenation operator (‘.’) – Concatenation of…
The PHP substr() function is used to get the substring that is returns a part of a string. This function takes the begin and length parameters to return the portion of string….
There’s no exact function to prepend a string in PHP. But PHP concatenation operator (.) is used to returns the concatenation of its left and right arguments. There are two…