
Search In
Let us know What is tht rsort() function in php ?
The rsort() function sorts array in decending order menas highest to lowest.
why use rsort() function in php ?
rsort() function basically used for sorting the elements of the array in decending a
Hello Readers ,
The following code demonstrate how you would accomplish common tasks with the Facebook SDK for PHP.
This SDK can be use in facebook login , Retrieve a user's profile , Post a link to a user's feed.
window.fbAsyncInit = function(
Often the images cropped from other images in iPhone SDK are degraded in quality. This is because we take a snapshot of the original image (of the desired area). But the below mentioned code prevents from happening the above mentioned issue. The belo
Hello readers !
Few days back I was facing issue to make public profile page in cakephp. And want to hide controller and action name from url for this I used the below code in routes.php and its work fine.
Router::connect(
'/:username', arra
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
Export Data to Excel
First get the data in a DataTable and call the below function.
if (dtGetData.Rows.Count > 0)
{
string filename = "ExcelName.xls";
System.IO.StringWriter tw = new System.IO.StringWriter();
Hi there, often programmers are required to display a large number of images on a a single screen, for example in a photo gallery. Displaying a group of images in their full size can be a bit tricky because it will take a lot of space and the the ima
If you want to create a dialog which will look like as spinner dialog of single choice in android which will open in button click event than you can create a custom dialog.
Sample code given below :-
You just have to call this method on click even
Here is the working example to get select box option value and text via Simple html dom.
I assume that you have already included simple_html_dom file and have html content in $content variable
$html = new simple_html_dom(); // Creating html dom o
The following code should be used to automate the slider:
WebDriver driver = new FirefoxDriver();
driver.get("http://jqueryui.com/resources/demos/slider/default.html");
driver.manage().timeouts().implicitlyWait(20L, TimeUnit.SECONDS);
WebElement sli
