What is the use of array_count_values() in php?


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

Post New Answer

More PHP Interview Questions

How to create a mysql connection?

0 Answers  


What is env in laravel?

0 Answers  


how to insert, update data in database

4 Answers  


Is echo a function in php?

0 Answers  


What is get method in java?

0 Answers  


What is the difference between php and javascript?

0 Answers  


What are the core OOP’s concepts?

2 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  


How we get ip address of client, previous reference page etc?

0 Answers  


How to assigning a new character in a string using php?

0 Answers  


Difference between array_combine and array_merge?

0 Answers  


What is the output of the following php code?

0 Answers  


Categories