iwantcoding
.com
Tutorials
▾
Web Frontend
HTML
CSS
HTML5
CSS3
JavaScript
TypeScript
Sass
React
Vue
Svelte
Tailwind
Backend
Python
PHP
Node.js
Java
Go
Rust
Ruby
C#
Databases
SQL
MySQL
PostgreSQL
MongoDB
Firebase
GraphQL
Redis
Mobile
React Native
Flutter
Swift
Kotlin
Ionic
Cloud & DevOps
AWS
Docker
Kubernetes
CI/CD
Linux/Bash
AI & Data
NumPy/Pandas
Machine Learning
TensorFlow
PyTorch
LangChain
RAG
Cybersecurity
XSS
SQL Injection
CSRF
OWASP Top 10
Cryptography
Ethical Hacking
Tools
Git
DSA
Design Patterns
RegEx
VS Code
Specialty
Game Dev
WordPress
Web3/Solidity
Three.js
Capstone
Enterprise Architecture
HTML
CSS
JAVASCRIPT
SQL
PYTHON
PHP
TYPESCRIPT
REACT
NODEJS
MONGODB
DOCKER
GIT
TAILWIND
GRAPHQL
LINUX-BASH
AWS
KUBERNETES
VUE
SVELTE
SASS
THREEJS
GO
RUST
JAVA
RUBY
CSHARP
WORDPRESS
POSTGRESQL
MYSQL
REDIS
FIREBASE
REACT-NATIVE
FLUTTER
SWIFT
KOTLIN
IONIC
CICD
NUMPY-PANDAS
ML
TENSORFLOW
PYTORCH
LANGCHAIN
XSS
SQLI
CSRF
OWASP
CRYPTO
DSA
DESIGN-PATTERNS
REGEX
VSCODE
GAMEDEV
WEB3
ENTERPRISE
CAPSTONE
ETHICAL-HACKING
🔥 Daily
👥 Rooms
🏆 Top
Log in
Sign up
AI ✨
PHP Tutorial
BOSS QUIZ
10 questions · 5 minutes · pass at 70% to clear the track.
05:00
Start
Q1.
For email validation prefer…
from PHP Form Validation
Hand-rolled regex
filter_var($email, FILTER_VALIDATE_EMAIL)
preg_match alone
string contains "@"
Q2.
HTML required attribute…
from PHP Form Required
Replaces server check
Helps UX but isn't enough
Is for admins only
Always blocks submission
Q3.
7 / 2 in PHP returns…
from PHP Numbers
3
3.5 (float)
4
Error
Q4.
file() returns…
from PHP File Open / Read
Bytes
An array of lines (newlines kept)
JSON
A stream
Q5.
fetch() with no rows returns…
from MySQL Select Data
false
null
[]
Throws
Q6.
For "next monday" use…
from Date/Time Functions
date_parse
strtotime("next monday")
mktime
time()
Q7.
Money columns should use…
from MySQL Create Table
FLOAT
DOUBLE
DECIMAL(10,2)
BIGINT cents OR DECIMAL — never FLOAT
Q8.
Read with safe default…
from PHP Associative Arrays
$arr[$k]
$arr[$k] ?? $default
$arr.get($k, $default)
$arr[$k] || $default
Q9.
Composition vs inheritance — modern advice is…
from PHP OOP Intro
Always inherit
Prefer composition; inherit when "is-a" really fits
Avoid both
Use multiple inheritance
Q10.
Status::tryFrom("bad") returns…
from PHP Enums (8.1+)
Throws
null
false
The default case
Submit
Back to PHP Tutorial
🏆
Achievement unlocked!