How to convert a json string to an array in php?
No Answer is Posted For this Question
Be the First to Post Answer
Write syntax to open a file in 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. -->
What is a variable cost example?
how many types of error in PHP.
Explain about the connective abilities of the PHP?
How to remove the new line character from the end of a text line in php?
Can php variables have numbers?
How to access a specific character in a string?
How can I reset an array in PHP?
4 Answers Rushmore Consultancy, TCS,
Define object-oriented methodology?
How can we make a constant in php?
How to Retrieve a Cookie Value?