The @(the at symbol) symbol in PHP is used to suppress the error reporting for the expression prepended with the @ symbol. However; if track_errors feature is enabled on your server then, any error message generated by the expression will be saved in $php_errormsg variable and this variable gets overwritten on each error. I would suggest, do not use @ symbol, this is not a good practice. Because
In this blog, I'am going to write a function to get City, State and Country name by latitude and longitude using Google Map API and PHP. I have created a function called get_city_state_country(), that will help us getting city, state and country name.
Below function get_city_state_country() accept two parameters. First parameter is used for latitude of the location and second one is for
Whether, you are printing a future date or you are creating a report in which, you need to create a weekly report or a monthly report and you want to add n number of days in current date to create your desired report then in such conditions this blog is useful for you.
So lets start with the ways, we can add days into date by using PHP language. There couple of ways, first one is, If you are
As a PHP developer, we often use MySQL as a database for our projects to store data on the server and we always use English as a language while storing data into the table. In some cases like storing some special characters or symbols which are not into defined into the character set you have enabled for your table, then MySQL store that special characters into bad encoding and when you fetch
Sometimes, you need to extract age from database of a person or it can be an employee or anyone, then we try to find a technique to fetch the date of birth details, although we can calculate the age via PHP or any language that a developer use to develop application writing some lines of code. However, if we can fetch all these information by writing a line or two in MySQL query then why should
In some cases, like you named branch incorrectly and pushed this to remote server or your project name has been changed to some other name you want to rename branch name then this tutorial is going to show you how to rename git branch repository very easily.
To make this happen you will need to follow below steps:
Rename your local branch:
If you are on the same branch that you want to rename
Sometimes, we need to check HTTP request method in codeigniter while we are working on a form that accept user inputs and we want to validate if form is submitted correctly and match the request method we already defined.
Here is the code to detect request method using codeigniter inbuilt functions
and an example:
Today, I am going to share a very small but useful tutorial with you about how to use MySQL FIND_IN_SET() function in codeigniter. Let's say, you are creating a product listing page and the tag ids associated with the product are stored in a comma separated column and you want to fetch all records of tag id 5, in this case we use MySQL FIND_IN_SET() function.
Now the question is
In this tutorial, i am going to show you multiple methods of printing object array:
In below example, I have used