Write a program using while loop?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More PHP Interview Questions

Why should I learn php?

1 Answers  


Explain php parameterized functions.

1 Answers  


What is inheritance in php progaming?

1 Answers  


List functions available to sort an php array?

1 Answers  


Is it possible to protect special characters in a query string?

1 Answers  


What are the disadvantages of php?

1 Answers  


what is the importence of session.save_path in Php.ini file and wht changes u've to made before using sesssions in ur php program first time?

4 Answers  


How to calculate the difference between two dates using php?

0 Answers  


Write a program to show the joining of two strings in php?

1 Answers  


<?php include ("db.php"); $result = mysql_query("SELECT ques_id FROM questionbank order by ques_id limit 5 "); while($obj=mysql_fetch_array($result)) { $ad1[$obj['ques_id']]++;//Used an array and inserted the database query results into it. } $rand_keys=array_rand($ad1,1); //Did a random array function echo "First random id = ".$ad1[$rand_keys[0]]; echo "<br>Second random id = ".$ad1[$rand_keys[1]]; ?> <!--Its not working. Have any solution for this. -->

1 Answers  


Which is true about the singleton design pattern?

1 Answers  


How can I reset an array in PHP?

4 Answers   Rushmore Consultancy, TCS,


Categories