Topics Summer Course

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/34

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:49 AM on 7/20/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

35 Terms

1
New cards

What does PHP standfor

PHP: Hypertext Preprocessor

2
New cards

Where is PHP code executed

On the server

3
New cards

What does the browser receive after PHP executes?

Plain HTML

4
New cards

What file extension do PHP files use

.php

5
New cards

What tags begin and end a PHP script

<?php and ?>

6
New cards

How does every PHP statement end

With a semicolon (;)

7
New cards

Are PHP variable names case-sensitive

Yes

8
New cards

Are PHP keywords case-sensitive?

No

9
New cards

What are the two main output statements in PHP?

echo and print

10
New cards

Which is slightly faster: echo or print?

echo

11
New cards

Which statement has no return value?

echo

12
New cards

Which statement returns 1?

print

13
New cards

How do PHP variables begin?

With the $ symbol

14
New cards

Does PHP require variable declarations?

No

15
New cards

When is a variable created in PHP?

When it is first assigned a value.

16
New cards

Can a PHP variable begin with a number?

No

17
New cards

Is PHP loosely typed or strongly typed?

Loosely typed.

18
New cards

Which function displays a variable's type and value?

var_dump()

19
New cards

Name the basic PHP data types

String, Integer, Float, Boolean, Array, Object, NULL, Resource

20
New cards

What are the three variable scopes in PHP?

Local, Global, Static

21
New cards

Where can a local variable be accessed

Only inside the function where it is declared

22
New cards

Where can a global variable normally be accessed

Outside functions

23
New cards

Which keyword allows access to global variables inside a function?

global

24
New cards

What does the static keyword do?

Keeps a local variable's value between function calls.

25
New cards

What are PHP superglobals?

Predefined variables accessible from anywhere

26
New cards

Name five PHP superglobals

  • $GLOBALS

  • $_POST

  • $_GET

  • $_SESSION

  • $_SERVER

27
New cards

What is $GLOBALS

An array containing all global variables

28
New cards

How do you create a constant

Using define() or const

29
New cards

Do constants use the $ symbol

No

30
New cards

What conditional statements does PHP support?

  • if

  • if...else

  • if...elseif...else

  • switch

31
New cards

What loops does PHP support?

  • while

  • do...while

  • for

  • foreach

32
New cards

Which keyword defines a class?

class

33
New cards

What are the two modern ways PHP connects to MySQL?

MySQLi and PDO

34
New cards

Which connection method only works with MySQL

MySQL

35
New cards

What is the difference between echo and print?

echo is slightly faster, has no return value, and can output multiple parameters. print returns 1 and only accepts one argument