What is magic function in php?
What is difference between rest api and restful api?
What is the use of "echo" in php?
Tell me what is the actually used php version?
<?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. -->
How to copy a file?
Explain the ternary conditional operator in php?
What Is a Persistent Cookie?
How to execute a php script from the command line?
Is uploaded file php?
Define urlencode() and urldecode() used in php?
How to randomly retrieve a value from an array?
suppose if u want to pass session value using cookies onlu.. what changes i've to made in php.ini file?