Online Test for PHP
- A PHP scripting block always starts with
< ?php ...... ?><@ ....... /><% .... %>{ ..... }
- Find Error/Output in follwing code:
<?php
$email = 'sumit@gmail.com';
$user = strstr($email, '@', true);
echo $user;
?>
sumit
@gmail.com
gmail.com
sumit@
- _______ function is used to sort an array in ascending order by value while preserving key associations.
ksort()asort()krsort()usort()
- PHP is an open source software
TrueFalse
- What will range('a', 'z') return?
Find difference between 'a' to 'z'An alphabetically ordered array of letters from 'a' to 'z'Will only apply on integer valueNone of the above
- Which is a valid character for starting a PHP function name?
Dollar Sign ($)Underscore (_)Percent (%)All of the above
- list in PHP is ?
Language constructKeywordA & C BothNone of the above
- Interface constant can be override in class implementing the interface.
TrueFalse
- If cookie expiration time is not set explicitly, what happens to it?
It expires right awayIt never expiresIt is not setIt expires at the end of the user's browser session
- What function creates a cookie?
create_cookie()set_cookie()setcookie()None 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