What is the role of foo in the php statement function ( foo );?

Upgrade to remove ads

Only SGD 41.99/year

  • Flashcards

  • Learn

  • Test

  • Match

  • Flashcards

  • Learn

  • Test

  • Match

Terms in this set [50]

How does the PHP engine process whitespace?

Ignores it

Which of the following PHP data types stores only true or false values?

Boolean

Which of the following is an example of a short-style PHP tag?

In PHP which bitwise operation is signified by the pipe [|] character?

OR

What is the purpose of the semicolon in PHP?

statement termination

Which of the following is a PHP function used to declare constants?

Define

Which of the following symbol represents a single-line comment in PHP?

//

Which of the following statements is false concerning PHP identifiers?

Identifiers are case insensitive.

PHP string interpolation requires:

double quotation marks

Which of the following statements tests for equality between the PHP variables $a and $b?

$a == $b

MySQL is an example of a[n]:

RDBMS

The _________ function reads an arbitrary number of bytes from a file.

fread[]

To open a file in PHP you use the _________ function

fopen[]

Which of the following is an alternative to the PHP file_put_contents[] function?

fwrite[]

Which of the following fopen[] file modes denotes 'cautious write'?

X

Disable PHP from opening files via fopen[] and FTP by editing:

php.ini

In PHP a while loop tests for the end of the file by using which function?

feof[]

Which of the following represents a reading lock of the flock[] function?

LOCK_SH

Which of the following is NOT a problem of working with flat files in PHP?

When a file becomes small, working with it can be very slow

In PHP writing data to a file requires how many steps?

3

An array containing other arrays is known as a[n] ___________ array.

Multidimensional

The PHP constant ____________ will sort an array as strings depending on the current locale.

SORT_LOCALE_STRING

PHP indexes start at ________ by default.

0

Which of the following PHP array operators signifies non-identity?

!==

The statement $products{0} access the ________ element in an array.

First

Which of the following expression shows a correct PHP array definition?

$products = ['Tires', 'Oil', 'Spark Plugs'];

The __________ construct can be used to split an array into a number of values.

list[]

The three different PHP sorting functions are sort[] asort[], and

ksort[]

What kind of PHP variable stores a single value?

Scalar

The _________ function modifies every element in an array the same way.

array_walk[]

Which of the following is an alias for the chop[] PHP function?

rtrim[]

Which PHP function takes a string as a parameter and replaces all the newlines in it with the HTML
tag?

n12br[]

What is the most common delimiter in PCRE regular expressions?

/

The expression $test = substr_replace[$test, 'X', -1]; replaces:

The last character in $test

Which of the following regex tokens anchors your match to the beginning of the subject string?

^

Which of the following conversion specification type codes interprets as an integer and prints as a character?

C

What is the result of the statement echo strlen["hello"];?

5

Which of the following represents the HTML encoding of >?

>

The trim[] function removes whitespace:

from the start and end of a string

Which of the following PHP expressions can get the domain name from a customer's email address?

$email_array = explode['@', $email];

A PHP function that calls itself is known as a _________ function.

Recursive

Which of the following statements is true concerning PHP functions?

PHP function names cannot begin with a digit.

Calls to PHP Functions:

are case-insensitive

In PHP the normal way that function parameters are called is known as:

pass by value

The PHP keyword return:

stops the execution of a function

What is the role of 'foo' in the PHP statement function['foo'];?

Parameter

Which of the following is a php.ini directive that points to a header file?

auto_prepend_file

Which of the following is a PHP statement that allows you to load a file into your PHP script?

require[]

A PHP function's __________ lists its parameters and data types.

Prototype

PHP variables that are declared inside a function are known as:

local variables

Sets with similar terms

COP3014 Midterm

104 terms

gabimetallides

C programming Test Chapters 7-9

30 terms

ladymolly

CSCI 121 Test 2 Set 1

60 terms

TheSaltyFaltys

cop 1220

76 terms

quizlette2157204

Sets found in the same folder

PHP Welling 6-11

60 terms

dogtoe23

CPSC-431 Final Exam Study Guide Pt. 2/2

59 terms

mardiaz353

MIS 315

342 terms

iadnow

Chapter 6

70 terms

j_amp

Other sets by this creator

ISIT350 FInal

106 terms

dogtoe23

Network Security - Final

78 terms

dogtoe23

NSCOM 223 Final

103 terms

dogtoe23

NSCOM 223 Test 2

53 terms

dogtoe23

Recommended textbook solutions

Introduction to Algorithms

3rd EditionCharles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen

720 solutions

Information Technology Project Management: Providing Measurable Organizational Value

5th EditionJack T. Marchewka

346 solutions

Starting Out with C++ from Control Structures to Objects

8th EditionGodfrey Muganda, Judy Walters, Tony Gaddis

1,294 solutions

Fundamentals of Database Systems

7th EditionRamez Elmasri, Shamkant B. Navathe

687 solutions

Other Quizlet sets

Quiz 4 - Operating Systems - incase original is de…

28 terms

MrFrogMonster

OS Quiz 1-4 Answers

80 terms

VS_Brandon

INTRO TO WEBDESIGN

55 terms

andrelina_howard

ARRL Extra Ham Study Questions-E2E

13 terms

dmclambjr

Related questions

QUESTION

What does a DGI [Dynamic Gait Index] measure?

7 answers

QUESTION

To get a pop-up menu with mouse right-click, use:

8 answers

QUESTION

Chaining together if and if/else statements

6 answers

QUESTION

The signature of a function consists of the function name and its formal parameter lists.

7 answers

What is the role of foo in the PHP statement?

Foo [pronounced FOO] is a term used by programmers as a placeholder for a value that can change, depending on conditions or on information passed to the program. Foo and other words like it are formally known as metasyntactic variables.

What are variable functions in PHP?

PHP Variable Handling Functions.

What is PHP function name?

Function names follow the same rules as other labels in PHP. A valid function name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular expression, it would be expressed thus: ^[a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*$ . Tip. See also the Userland Naming Guide.

How do you call a function variable in PHP?

There are two methods for doing this. One is directly calling function by variable name using bracket and parameters and the other is by using call_user_func[] Function but in both method variable name is to be used. call_user_func[ $var ];

Chủ Đề