Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Technology Questions
In PHP source code embedded in HTML, what is the purpose of the special PHP opening and closing tags such as ?
In PHP, you assign a variable the literal value 0123 and it prints as a different decimal number. What is the underlying problem in this situation?
In PHP, if variable $a equals 5 and variable $b equals the character a, what is the value of the variable variable $$b?
In PHP object serialization, what is the special meaning of the magic methods __sleep() and __wakeup()?
In PHP string escape sequences, what is the difference between the sequences \\23 and \\x23 when used inside double quoted strings?
In PHP, what is the difference between the hash functions md5(), crc32(), and sha1() in terms of output size and typical usage?
In PHP, what is the main difference between include and require when you bring in an external file?
In PHP, how do you define a constant value that cannot be changed at runtime?
In PHP function calls, how do you pass a variable by value rather than by reference?
In PHP, what does the ternary conditional operator do and how is it used in expressions?
In modern PHP versions, are objects passed by value or by reference when you assign them to another variable or pass them into a function?
In PHP object oriented programming, how do you call the constructor of a parent class from within a child class constructor?
In PHP, should you initialise string literals with single quotes or double quotes, and what practical difference does this choice make?
In PHP, there are echo, print, and printf for output. How do these constructs differ in behaviour and typical usage?
In PHP, what is the difference between htmlentities() and htmlspecialchars() when escaping text for HTML output?
In PHP file handling, what is the standard way to open a file for reading or writing?
In PHP, why do we use the array_flip() function on an associative array?
In Apache based PHP hosting, what is a .htaccess file and why is it used?
In a PHP script index.php, can you include the same file xyz.php twice, and what is the effect?
In PHP, how can you get information about the client browser such as name and version?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79