Geeks2Smart
Courses, in learning order All courses
<html>
{ }
@media
aria-
.js
<?php
wp_
Topics
New to coding?
HTML Complete Course
Build semantic, accessible web pages from your first file to native dialogs, safe embeds and fast loading.
Ten questions covering the whole PHP for Beginners course.
10 questions. Pass mark 70%.
php -S localhost:8000
php serve 8000
php --server 8000
$a = '5'; $b = 5; var_dump($a === $b);
bool(false)
bool(true)
int(1)
Select all that apply.
$userName
$_total
$2fast
$first-name
$name = 'Sam'; echo "Hello, {$name}!"; echo 'Hello, {$name}!';
Hello, Sam!Hello, {$name}!
Hello, Sam!Hello, Sam!
Hello, {$name}!Hello, {$name}!
$score
$score >= 70 ? 'pass' : 'fail'
$score >= 70 ?? 'pass' : 'fail'
$score >= 70 ?: 'pass' : 'fail'
for ($i = 0; $i < 5; $i += 2) { echo $i, PHP_EOL; }
count(['a' => 1, 'b' => 2, 'c' => 3])
add(2, 3)
function add(int $a, int $b = 10): int { return $a + $b; }
echo htmlspecialchars($name, ENT_QUOTES, 'UTF-8');
echo $_POST['name'];
echo strip_tags($_POST['name'], '<script>');
require_once
include
include_once
require
Review these before trying again:
Turn on JavaScript to take this quiz. Your answers are checked on our server.