BTI Beyond The Interviews

Languages · 15 sections

PHP

Modern PHP 8.x (8.0–8.5) — types, attributes, match, property hooks, pipe operator, and the runtime features behind Laravel/Symfony interviews.

Premium · preview 141 cards Updated 24 Oct 2026
Free to preview. The first 3 cards and the full outline are below — the rest of this sheet is part of the Languages bundle.

What's inside

Preview — first 3 of 141 cards

PHP tags & echo/print

Code lives between <?php ... ?>. echo is a language construct (no return, multiple args). print is also a language construct (not a function): it always returns 1 and takes exactly one argument. Short echo <?= $var ?> for templates.

<?php echo 'hi'; ?>
<?= $name ?>

Variables

Variables start with $ and are case-sensitive. No declaration needed; assignment creates. Types are dynamic but can be hinted. Variable variables $$name exist (avoid).

$name = 'Ada';
$Name = 'different';
$$name = 'value';  // $Ada

Scalar types

int, float, string, bool. Plus null, array, object, resource, callable. PHP is loosely typed by default; strict_types makes scalar hints strict.

$i = 42; $f = 3.14; $s = 'hi'; $b = true;
var_dump($i, $f, $s, $b);

138 more cards in this sheet

Unlock the Languages bundle — ₹399

One-time payment. Unlocks this sheet and 7 other sheets in the bundle, plus a typeset PDF of each.

Unlock the bundle See all bundles

Or get all 76 sheets for ₹999 — one payment, every future sheet included.