• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/31

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

31 Cards in this Set

  • Front
  • Back
How can precisely one byte be read from a file, pointed by $fp?
fgetc($fp)
What object method specifies post-deserialization behavior for an object?
__wakeup()
Where does the session extension store the session data by default?
File System
Which of the following data types cannot be directly manipulated by the client?
Session Data
What is the difference between isset() and other is_*() functions (is_alpha(), is_number(), etc.)?
isset() is a language construct and is_*() are not language constructs
What will be the value of $b after running the following code?

<?php
$a = array(‘c’, ‘b’, ‘a’);
$b = (array) $a;
array(‘c’, ‘b’, ‘a’)
Which of the following function signatures is correct if you want to have classes automatically loaded?
function __autoload($class_name)
How do you get information from a form that is submitted using the "get" method?
$_GET[];
What is the correct way to include the file "time.inc" ?
<?php include("time.inc"); ?>
What is the correct way to create a function in PHP?
function myFunction()
What is the correct way to open the file "time.txt" as readable?
fopen("time.txt","r");
What is the correct way to add 1 to the $count variable?
$count++;
How does PHP differ from languages like perl and C?
PHP differs from Perl or C scripting languages by using special start and end tags that enclose the code, allowing the programmer to freely move in and out of “PHP mode”
arrays may be sorted with which functions
uksort()
arsort()
ksort()
In PHP, the error control operator is ________.
@
What does break; do?
Ends execution of the current for, foreach, while, do-while or switch structure
What library do you need in order to process images?
GD library
A constructor is a special kind of…
Method
The three possible connection states in PHP are ________.
normal
aborted
timeout
Which functions are used by PHP to find out what type a variable is?
gettype()
is_double()
Choose the selection that best matches the following statements: PHP is a _____ scripting language based on the ____ engine. It is primarily used to develop dynamic _____ content, although it can be used to generate ____ documents (among others) as well.
Embedded, Zend, HTML, XML
Variables, however cannot start with _____
numbers
define(myvalue, "10"); is an example of defining a _________
constant
What is the difference between print() and echo()?
print() can be used as part of an expression, while echo() can’t

print() behaves like a function with its own return value

echo() is actually a language construct
% operator is a modulus. What does it return
whatever the remainder would be if its two operands were divided
The << operator is a left-shift operator. What does it do?

solve for i
i=16<<4
multiplies an integer number by powers of two

i = (16*2)*(4*2)=256
What is the best way to iterate through an array, assuming you want to modify the value of each element as you do?
a for loop

foreach statement is notthe most appropriate construct b/c it works on a copy
Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
When the parameter is being declared as passed by reference
The ____ operator returns True if either of its operands can be evaluated as True, but not both. (enter as text, not symbol)
the exclusive-or (xor) operator.
How does the identity operator === compare two values?
The identity operator works by first comparing the type of both its operands, and then their values. If either differ, it returns False
$a <<= 2;
the left bitwise shift operator is used to shift the value of $a by two bits to the left, which corresponds to a multiplication by 4.