Author Archives: phpspiderblog

How to rename a git local and remote branch?

As we are working in a team and using git. Many developers are working on the same project in this git is very helpful. So when we have to rename the git branch? You created a branch and pushed on the remote server, after pushing you got to know that branch name is incorrect. To… Read More »

How to add empty directory to git repository?

Whenever we are creating a directory in git folder git shows us nothing to commit, it is by the design of git we can not commit empty directories. So to commit empty directory to git repository follow the steps below Create an empty directory 2. Then create an empty directory 3. Add your directory with… Read More »

empty() function PHP

empty() function determines whether given variable is empty and also used for checking variable is set or not. Variable is said to empty if it is not set or value is false. empty values can be : 0 “” or “0” 0.0 (0 float value) FALSE empty array() NULL Reference : http://php.net/manual/en/function.empty.php