Online Test for PHP
- Parent constructors are not called implicitly if the child class defines a constructor.
TrueFalse
- Static methods can be call with class name and colon operator, $this is not available inside the method declared as static.
TrueFalse
- Which keyword cannot be used while defining property?
PublicStaticFinalPrivate
- Array values are keyed by ______ values (called indexed arrays) or using ______ values (called associative arrays).
Float, stringEven number, stringString, BooleanInteger, string
- Find Error/Output in follwing code:
<?php
$val1 = 42;
if(ctype_digit($val1)) {
echo "Integer";
} else {
echo "Not Integer";
}
$val2 = '42';
if(ctype_digit($val2)) {
echo "Integer";
} else {
echo "Not Integer";
}
?>
Not Integer Integer
Integer Not Integer
Integer Integer
Not Integer Not Integer
- PHP is an open source software
TrueFalse
- microtime() returns _______.
current Unix timestamp with secondscurrent Unix timestamp with nanosecondscurrent Unix timestamp with microsecondsNone of the above
- How are session variables accessed through?
$_GET$_POST$_REQUESTNone of the above
Also Exercise
Post Your Question
Social Sharing
Search
Articles
Recently Added Jobs
Rajasthan High Court - Jodhpur Recruitment 2017 for Civil Judges
Last Date: 21 December, 2017
Last Date: 21 December, 2017
WBSEDCL Recruitment - 2017 for Office Executive
Last Date: 16 May, 2017
Last Date: 16 May, 2017
RECRUITMENT OF PROBATIONARY OFFICERS IN STATE BANK OF INDIA
Last Date: 06 March, 2017
Last Date: 06 March, 2017
UPSC Combined Medical Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015
UPSC Engineering Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015