How do you develop your own PHP extension ?
Answers were Sorted based on User's Feedback
<?
echo 'PHP';
?>
this file save as .php extention.
Is This Answer Correct ? | 4 Yes | 13 No |
When to use self over $this?
what is the best function that can be used to connect to mysql database and in what cases that we can use below functions ? 1. mysql_connect() 2. mysql_pconnect() please give your answer with all pros and cons
Which is a perfect example of runtime polymorphism?
<?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 PHP is procedure oriented or object oriented?
What is csrf token and why it is required?
how can i get USA time using php...
How can we know the count/number of elements of an array?
Tell me what does the array operator '===' means?
Is strcmp case sensitive?
What is overloading and overriding in oop?
Which function can be used to exit from the script after displaying the error message?