Write an example to remove html tags from a string in php?
No Answer is Posted For this Question
Be the First to Post Answer
What is scope of variable in php?
How to compare two strings with comparison operators in php?
Does php support function overloading?
What is variable declaration?
What are the final class and final method?
Explain the difference between mysql_connect and mysql_pconnect?
How many types of php are there?
How to execute an sql query? How to fetch its result?
What changes I have to do in php.ini file for file uploading?
<?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 we destroy the session, how can we unset the variable of a session?
What is difference between action hook and filter hook?