Which functions are used to count the total number of array elements in php?
No Answer is Posted For this Question
Be the First to Post Answer
What are the encryption functions available in PHP?
What is the use of Mbstring?
What are traits? How is it used in php?
Which function can be used to exit from the script after displaying the error message?
Can anybody plz tell me if there any recruitment on php plz mail to vasudev.adepu@gmail.com.i had completed M.SC(MATHS) in 2007 . trying to get a job on php. i have good knowledge on PHP/MYSQL
What does $this do in php?
explain the changes in php version
How can we extract string ‘abc.com ‘ from a string info@abc.com" target="_blank">http://info@abc.com using regular expression of php?
What is the importance of parser in php?
How escape single quotes php?
<?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. -->
Is it possible to protect special characters in a query string?