Is php an array?
Can we override magic methods in php?
What is isset in php form?
Tell me what is use of in_array() function in php?
Explain what is meant by pear in php?
What are the design patterns in php?
what is the scope of php in the future if any other language is developed then may be php is loss ???
<?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. -->
Name some of the functions in php.
What's diffrence between Get() and Post() Function
What is the purpose of break and continue statement?
How many escape sequences are recognized in double-quoted strings?
How to get ip address of clients machine?