PHP Code (33)
JSP Code (6)
ASP Code (5)
CGI Perl Code (3)
JavaScript Code (63)
VB Script Code (20)
Shell Script Code (31)
Python Code (34)
WinRunner Code (1)
HTML DHTML XHTML Code (13)
XML (43)
Scripts_Markup Code AllOther (5) I have array like $array = array(1, "hello", 1, "world", "hello"); if i want the following output then how can i do this? Array ( [1] => 2 [hello] => 2 [world] => 1 )
NIIT,
2 4697If i have an array $string = array(1,2,6,2,9,6,7,3,1,2); How can i get only unique values from it? Array ( [0] => 1 [1] => 2 [2] => 6 [4] => 9 [6] => 7 [7] => 3 )
2 4396Which framework is best in php among Smarty, Cakephp, Joomla, Drupal, Zend or Something else...? If any then Why?
HCL,
2 8864
What is 301 redirects in php? When are we used 301 redirects in our projects?
Can I execute a XML?
Given a N by N matrix of both negative and positive integers. Write an efficient algorithm to find the sub-matrix with the largest sum of all the contained elements.
how to copy form data between different pages
Which keyword is alias for count keyword in php?
code to images to rollover
sample code to auto focusing the first field in a form
Write a function that takes an unsorted integer array, and returns a three element subset whose sum is zero.
How to store the iterations value in some variable/ in excel? Dim objExcel, ObjFolder, objPath, objWorkbook, objSheet, ObjFSo, ObjFolderName, strExcelPath Const xlExcel7 = 39 ObjFolderName = "Testing" & Hour(time()) & Minute(time()) &Second(time()) objPath = "D:\" strExcelPath = objPath & ObjFolderName & "\testing.xls" Set ObjFSo = CreateObject("Scripting.FileSystemObject") Set objFolder = objFSO.CreateFolder(objPath & ObjFolderName) On Error Resume Next Set objExcel = CreateObject("Excel.Application") If (Err.Number <> 0) Then On Error GoTo 0 Wscript.Echo "Excel application not found." Wscript.Quit End If On Error GoTo 0 Set objWorkbook = objExcel.Workbooks.Add() Set objSheet = objExcel.ActiveWorkbook.Worksheets(1) Dim arr1, arr2, arr3 Set outputLines = CreateObject ("System.Collections.ArrayList") arr1 = 123arr2 = 99 arr3 = 10 outputLines.Add arr1 outputLines.Add arr2 outputLines.Add arr3 outputLines.Sort() For Each outputLine in outputLines WScript.Echo outputLine ' how to store this value in excel/ variable? Next objExcel.ActiveWorkbook.SaveAs strExcelPath, xlExcel7 objExcel.ActiveWorkbook.Close objExcel.Application.Quit This above code is working fine but the qs is is there any way to store the sort data in variables / in the excel and how?
snippet to prevent submission of form when certain/any validations got failed
code to set the main window's size
how to create Expandable and Collapsible Menus
What is used of serialize and unserialize in php?
How to add flash or *.gif file in edit panel in java?
What is the best way to make wordpress plugin