Scripts_Markup Code Interview Questions
Questions Answers Views Company eMail

What is difference between in_array and array_search?

TCS,

2 6951

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 3942

If 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 3520

what is main difference between array_push and array_pop?

3660

Which framework is best in php among Smarty, Cakephp, Joomla, Drupal, Zend or Something else...? If any then Why?

HCL,

2 7985

How can get all database name using Php and Sql?

NIIT,

1742

How can i know that how many user are visited to my page in php?

NIIT,

1590

How can restrict user to type upto 8 characters in textbox in php?

1544

Which keyword is alias for count keyword in php?

1655

Is there any way to open notepad within php?

1681

How can export database using php code?

1561

How can import database to mysql using php code?

Wipro,

1 3277

What is used of serialize and unserialize in php?

2549

How can manage theme in php?

2005

What is used of phpinfo() function in php?

1 3120


Un-Answered Questions { Scripts_Markup Code }

What is XML DOM Document?

331


Write a function that takes an integer and returns the smallest number that is greater than the given number which is a palendrome. For example, if the input was 111 the next palindromic number would be 121.

1379


What is the meaning of version in XML?

375


What are nested elements in XML?

337


Pls provide basic funtionality Winrunner scripts for Health care domain and Phishing

1150






sample code to auto focusing the first field in a form

2012


Given a circular list of integers (when you reach the end of the list you come back to the beginning), what is the most efficient algorithm to find the smallest integer in the list? For example: circular_list = [22, 52, 66, 82, 5, 8, 12, 19].

1352


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.

1264


i have some csv files in a directory which have sub-directories also. now how can i merge all .csv files in to one with a single header. for example: have some 4 files. 1.csv--------name,age,sal abc,25,4000 2.csv--------name,age,sal vgd,32,3500 3.csv--------name,age,sal hfg,20,5000 4.csv--------name,age,sal asd,15,2000 now my output file should be like 5.csv----------name,age,sal abc,25,4000 vgd,32,3500 hfg,20,5000 asd,15,2000 and please explain the code for me. as i am new to scripting. thank you in advance

1395


how to manage mlng timer because they don't explain what's it's function?

2437


code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc

1717


What are the advantages of XML DOM Document?

349


what is the structure of xml document ?

332


Write a python program to check if a string is a palindrome or not?

470


how to get the User's Time of Day

1647