PHP 7

Vorbereitung auf die Zend PHP Certification

Vorbereitung auf die Zend PHP Certification


F. L.
Flashcards
15
Students
5
Language
German
Category
Computer Science
Level
Other
Created / Updated
27.06.2017 / 14.08.2018

Flashcards

PHP Tags (pure PHP)

PHP Tags in HTML

Instruction Separation

; or ?>

Comments

#, //, /**/

Comment Hierarchy

/**/ over // and #

Scalar Types

boolean, integer, float (aka double), string

Compound Types

array, object, callable, iterable

Special Types

resource, NULL

Pseudo-Types

mixed, number, callback, array|object, void

Pseudo-Variable

$...

Does the programmer set the type of a variable?

No, it is decided at runtime by PHP depending on the context in which that variable is used.

What is a boolean?

A boolean is a truth value.

Boolean: Which two values are possible?

TRUE or FALSE

Boolean: How to convert into a boolean?

(bool) or (boolean) or automatic, if an operator, function or control structure requires a boolean argument

Boolean: Which values are FALSE?

the boolean FALSE itself, the integer 0 (zero), the float 0.0 (zero), the empty string, and the string "0", an array with zero elements, the special type NULL (including unset variables), SimpleXML objects created from empty tags

Study