View note:PHP



Questions of this subject!.

QuestionLikes!Dislikes!Answers!
1)Write a PHP functions that reads contents from a file and write into a file?

002
2)What is the use of "echo" in php?

007
3)How to include a file to a php page?

001
4)Differences between GET and POST methods ?

001
5)How to declare an array in php?

001
6)What is the use of print in php?

002
7)Which of the following is the correct syntax to write a PHP code?

001
8) Explain PHP variable length argument function.

002
9)Write syntax to open a file in PHP?

003
10)How to write in a file in PHP?

002
11)What are constructors in php?

001
12)How to register a variable in php session?

001
13)What is the purpose of @ in php?

001
14)What is namespaces in php?

001
15)What is a composer in php?

001
16)What is cURL in php?

001
17)How to get length of an array in php?

002
18)How to increase execution time of a php script?

001
19)Code to open file download dialog in php?

001
20)Which of the following is used for concatenation in PHP?

001
21)Write a PHP program to get data from XML file in PHP

001
22)How to lock a file using PHP?PHP

001
23)What is the difference between “echo” and “print” in PHP?PHP

001
24)What is the output of the following code: $a = 1; $b = &$a; $b = "2$b"; echo $a.", ".$b;

001
25)Describe how inheritance works with PHP.

001
26)What does $_COOKIE mean (php programming) ?

001
27)What is a PHP File? What extension does php uses?

001
28)What is spaceship operator in PHP?

002
29)Give examples of single and multiple line comments in PHP.

001
30)How can you declare a PHP variable?

001
31)Are variable names case sensitive in PHP?

001
32)In PHP what are the different types of variable scopes?

001
33)Give example of Local Scope variable in PHP.

001
34)Give example of Global Scope variable in PHP.

001
35)Give example of Static Scope variable in PHP.

002
36)In PHP, an integer data type is a non-decimal number between range _____ and _____ ?

001
37)What is the PHP var_dump() function?

001
38)What does __construct() function in PHP do?

001
39)What are constants in PHP? State the syntax.

001
40)Why is define function used in PHP?

001
41)Are constants global in PHP?

001
42)How are classes loaded in PHP?

001
43)Explain how we handle exceptions in PHP?

001
44)What are the differences between die() and exit() functions in PHP?

001
45)What is PDO in PHP? PHP INTERVIEW QUESTIONS

001
46)Prior to which version of PHP did constructors took the name of the enclosing class.

001
47)Which of the following statements is/are true about Constructors in PHP? i) PHP 4 introduced class constructors. ii) Constructors can accept parameters. iii) Constructors can call class methods or other functions. iv) Class constructors can call on other constructors.

001
48)PHP recognizes constructors by the name _________

001
49)Which one of the following keyword is used to inherit our subclass into a superclass?

001
50)Which keyword is used to refer to properties or methods within the class itself?

001
51)How many functions does PHP offer for searching strings using POSIX style regular expression? a) 7 b) 8 c) 9 d) 10

001
52)How do I pass variables and data from PHP to JavaScript?

001
53)How would you create a Singleton class using PHP? interview questions

001
54)Is there a function to make a copy of a PHP array to another? PHP question

001
55)How to add UTF-8 support to your PHP file?

002
56)How can I get my variable from PHP to JavaScript?

001
57)Returning JSON from a PHP Script.

001
58)PHP Pass variable to next page

001
59)Formatting a number with leading zeros in PHP?

001
60)How to convert an array to object in PHP?

001
61)How can I get the MAC and the IP address of a connected client in PHP?

001
62)What is difference between AND vs && as operator - php question?

001
63)Why does PHP consider 0 to be equal to a string?

001
64)php - Should I call exit() after calling Location: header?

001
65)How To Run PHP From Windows Command Line in WAMPServer?

001
66)How can I compare two dates in PHP?

001
67)PHP: How to send HTTP response code?

001
68)Using braces with dynamic variable names in PHP.

001
69)PHP random string generator.

001
70)What is the use of the @ symbol in PHP?

001
71)How to read a large file line by line?- PHP

001
72)How to validate an email address in PHP?

001
73)Curly braces in string in PHP?

001
74)What are the ways to comment the code in LESS?

001
75)How to send email using php script?

001
76)PHP7 has some new features, what are its new advantages?

002
77)Which function is used in PHP to count words in string?

001
78)In PHP, whether is_Numeric() function depicts the variable is a numberic or not?

001
79)In PHP, explain about php Math uses?

001
80)Explain about Min and Max functions() under PHP Math?

001
81)Explain about PHP Constant() and which function is used to declare constants?

001
82)Which is the right way of declaring a variable in PHP?

001