
Search In
I am writing a way to implement SortedSet in java.
SortedSet have the properties of Set interface plus feature of sorting in ascending order. It is by default provides elements in ascending order. It is very useful in such situation when we don’t ne
Inline styles are those defined in the HTML itself, e.g.
<p>
This is an
<strong style="color: red;">inline style that should be blue</strong>.
</p>
Inline styles have the highest priority of all CSS
Hello Readers ,
If we have the certain array in php and we want to suffle the values of an array then we have the function called shuffle().
This function randomize the vales in an array.
Example :
<?php
$my_array = array("red","green","blue",
Hello Readers ,
If we want to insert more records at the end of an array then their is function called array_push() that we can use.
Example :
If we have an existing array array("red","green"); and we want to insert two more values at the end of t
Hello Readers ,
If we have an array and we want to delete the last record in an array then their is a function called array_pop() .
The array_pop() function deletes the last element of an array.
Example :
<?php
$a=array("red","green","blue");
Hello Readers ,
With the use of array_unshift() , it will insert new values at the beginning of an array.
We can add one value, or as many as you like.
Syntax:
array_unshift(array,value1,value2,value3...)
Example:
<?php
$a=array("a"=>"r
Hello Friends,
If you want to compare two array with respect to keys not values then you can use a predefined PHP function "array_diff_key()". array_diff_key function compares the keys from array1 against the keys from array2 and returns the differe
Media rule in CSS is very attractive way to define different style rules for various types of screens(tablets/mobile screen) Media queries look at the capability of the device and be used to check various things:
Height and Width of the screen
Hii,
In this blog i am going share how to use css gradient property to increase visual appeal of your webpage.
Go through the example below to learn how we can apply gradient property in background of any html tags in different ways.
CSS gradient pr
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)