
Search In
Hello friends,
Today we will learn how to replace array element with other elements. In PHP, array_replace() function is used to replace the array elements with another array elements with the help of key. That is, elements of the first array will b
If you have a sting in the format of dd-mm-yyyy and you need to convert it into date format then you can see the operation below:-
var date1 = "07-11-2015";
var numbers = date1.match(/\d+/g);
var date = new Date(numbers[2], numbers[0]-1, numbers[1
.to_a is used to specify range. It is a method that converts an object into an array
Example
$, =", " # Array value separator
range1 = (1..10).to_a
range2 = ('bar'..'bat').to_a
puts "#{range1}"
puts "#{range2}"
Output
1, 2, 3, 4, 5, 6, 7, 8, 9
Hello Reader's! if you have an given array on with you want to sort with any selected key index as show below:-
Array
(
[0] => Array
(
[configuration_id] => 10
[id] =&
To compare two dates we can use the following code :
NSComparisonResult result = [mydate1 compare:mydate2];
//where mydate1 and mydate2 are two dates we want to compare.
if (result == NSOrderedDescending) {
//mydate1 is later than mydate2
} else
The delegation method is performed the reference fields automatically set up on the parent model:
For example you can take idea from below code-
class Child0(models.Model):
_name = 'delegation.child0'
field_0 = fields.Integer()
class
WCF services are used to perform functionality that are commonly need by our web applications.
Like we need payment gateway integration in most of our websites so what we do is to create a service for that.
Ex: [ServiceContract]
public in
hello
i have 1 img view and 3 imgbutton
i want to set the img view background as same as img button click
means imgbutton 1 click the image view should get img button1 background
To **delete the test sales/Order data from magento** run the below queries in your magento database --
SET FOREIGN_KEY_CHECKS=0;
##############################
# SALES RELATED TABLES
##############################
TRUNCATE `sales_flat_creditmemo`;
Structure is basically a user defined datatype which is a collection of heterogeneous elements.
Each element of a structure is called a member.
It works like a template in C++ and class in Java.
It is used to store student information, employee
