
Search In
If we are traversing an array and need to update an element in some condition then it is quite tricky to do that in foreach loop.
For example, if we need to increase each element by 2 of an integer array then we can do that using for loop in this wa
Entity framework provides numerous ways to batch delete the objects from Database. Below are the step for way 1 :
Load objects that has to be deleted in memory.
Remove the objects from context
And then save these changes. This statement will ref
To access the Auth component from view will give you error like you cant access the Auth component.
Here is a way of accessing the Auth components from view which can be done using CakeSession in cakephp.
to do so lets see the example :
$user =
Hello Readers,
In Angular2 we can do the Two-way binding and user can see the application data values. To show the data we uses data binding. In this post we will see how to implement Two-way binding in Angular2 application.
Two-way binding
Hello Reader's, Suppose you having a variable and you want to find it by it's name, See the example below:-
var MyVar = '12';
alert(window['MyVar']);
Output:-
12
No if you have variable like this way
var MyVar = {IND:'value12'};
alert(MyVar['
Hello Reader's if you need to refresh the webpage using the Javascript then Angular js offers you many ways but you can use the best and the shorted way , as below:-
var PageLandURL = "http://www.abc.com"; //Just set ur URL
$window.location.href = P
Hello Reader's!
If you need to calculate the number of hours or days between two given dates then PHP offers you a lot of ways. But you can perform this task by the following way:
Lets see the example below:-
//Calculate number of hours between pass
We can implement jquery ajax by this way
$this->layout = 'ajax';
Call above line in your function inside your controller file. by this way we can call the ajax layout.
Need to create a ajax.ctp file which is empty layout file.
$.get('/co
Some time developer wants to change the timezone in codeigniter application. There is may way to change the timezone in codeigniter. Here I am explaining you the best way to change the timezone in codeigniter, which is-
First open the index.php, whi
Welcome to FindNerd. Today we are going to tell the way how we can reverse a string without using array_reverse function in php. Please have a look.
$string = "FINDNERD";
$count=array_sum(count_chars($string));
for($i=$count -1 ;$i>=0;$i--){
