
Search In
EventBus is third party library which is best for communication with Activities,Fragment,Thread etc. It simplifies the communication between components. It is fast and less code use.
First of all add dependencies to gradle file.
To add a Drag and Drop functionality in your Application You just have to append the below Code in your app.
//This function is called when the user touches any object
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
Here we will see example of how we can pass data using closure function.As we've seen how to create a closure, let's see how we can use them.
When we pass a callback function to the PHP usort() function, and usort() calls our callback, the callback
Hello reader's today we discuss about "How to write a simple Plugin in wordpress".
If you want a to write own Plugin in WordPress there are some steps you must follow and these steps are mention below:
Plugin name should be unique(the name should
foreach loop
In Jdk 1.5 generics concept can be introduced and do some enhancement in for loop and the enhanced for-loop is introduced. The enhanced for-loop is reduce the overhead to print the values of the arrays and collections because it works o
Interface with default methods in Java 8
In later version of Java Interfaces always contained only method declaration. We are not giving method definition in the interfaces because java did not allow multiple inheritance of classes. But in Java 8 it
Some time developers fetch the cache problem when they are developing the app with the codeigniter framework. Below I am giving some methods that how you can clear the cache of codeigniter.
In codeigniter, the cache is save in the folder with the p
Hello Reader's. If you have developed the header and footer of the website separatly then it's very easy to make them render on a webpage. By using the JS you can call them with a single line of code as written below:-
<html>
<head>
<
Firstly let us know why we use explode() function in php ?
explode() function basically used for breaking a string into an array in php.
explode() function is binary-safe in php.
explode() function syntex is given bellow:
explode(',',string,0)
What is tht implode() function in php ?
The implode() function basically utilized to join elements of an array with a string. So in other word we can say, it takes an array and returns a string.
syntax of implode() function
implode (separator, ar
