What are the rules in creating php variable?
No Answer is Posted For this Question
Be the First to Post Answer
Do you have to initialize variables in php?
What are the advantages of not using any frameworks ?
What is the functionality of the functions strstr() and stristr()?
What is php call function?
<?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 can I loop through the members of an array?
1 Answers Rushmore Consultancy,
What is the Pipe Symbol represented?
What does $_env mean?
How can we convert the time zones using PHP?
What does $this do in php?
How to find second highest salary
Explain about a search-friendly site looks like?