CodeQuest
Roadmap
L1.1: Hello World
L1.2: Display Your Name
L1.3: Display Multiple Lines
L1.4: Combine Text (Concatenation)
L1.5: Mini Project: Welcome Page
L2.1: Create a Variable
L2.2: Store Numbers and Calculate
L2.3: Combine Variables in Text
L2.4: Variable Types & Booleans
L2.5: Mini Project: Personal Info Card
L3.1: Comparison Operators
L3.2: If-Else Branching
L3.3: Multiple Conditions with Elseif
L3.4: Logical AND (&&) & OR (||)
L3.5: Final Project: Age Checker
L4.1: For Loop Basics
L4.2: While Loop Countdown
L4.3: Foreach Loop
L4.4: Break and Continue
L4.5: Final Project: Number Generator
L5.1: Create & Access Indexed Arrays
L5.2: Add Values to an Array
L5.3: Associative Key-Value Arrays
L5.4: Looping Associative Arrays
L5.5: Final Project: Product List
L6.1: Write Your First Function
L6.2: Function Parameters
L6.3: Return Values
L6.4: Default Parameter Values
L6.5: Final Project: Simple Calculator
L7.1: Create an HTML Form
L7.2: Reading $_POST Data
L7.3: Form Validation (Empty Check)
L7.4: Sanitizing Form Inputs
L7.5: Final Project: Contact Form
L8.1: URL Query Parameters with $_GET
L8.2: Null Coalescing Operator (??)
L8.3: HTTP Method Detection
L8.4: Filtering Input with filter_input / filter_var
L8.5: Final Project: Search Form
L9.1: Encode PHP Array to JSON
L9.2: Decode JSON String into PHP Array
L9.3: Append Item to JSON List
L9.4: Pretty Print JSON
L9.5: Final Project: JSON Notes System
L10.1: Starting a PHP Session
L10.2: Reading Session Values
L10.3: Protecting Pages with Session Auth
L10.4: Destroying Sessions (Logout)
L10.5: Final Project: Simple Login Session
L11.1: Password Hashing with Bcrypt
L11.2: Verifying Hashes with password_verify
L11.3: Preventing XSS with htmlspecialchars
L11.4: Generating CSRF Tokens
L11.5: Final Project: Secure Login System
L12.1: Writing Files with file_put_contents
L12.2: Reading Files with file_get_contents
L12.3: Appending to Files with FILE_APPEND
L12.4: File Extension Validation
L12.5: Final Project: Safe File Upload Practice
L13.1: JSON Response Header
L13.2: HTTP Response Status Codes
L13.3: API Input Body Parser
L13.4: Standardized API Response Wrapper
L13.5: Final Project: Simple JSON API
š Sound On
1d
0
XP
Save
Login
Guest Mode Active:
Your progress is temporarily held in this browser. Create your free account to lock in your XP and milestones so you can logout and login anytime without losing progress.
Save My Milestones (Free)
1. Instructions & Drills
2. Code Editor
Type Here
Task
code.php
Purple IDE
Paste Disabled (Drill Test)
Reset
Ctrl+Enter
to Run
Run Code
Check Answer
<?php // Personal Info Card $name = "Zain"; $city = "Lahore"; $xp = 500; // Display: Zain from Lahore has 500 XP
Sandbox Console
Execution:
0ms
Isolated Sandbox • Safe PHP CLI
Click
ā¶ Run Code
or press
Ctrl+Enter
to execute your PHP script.
MISSION COMPLETE!
Outstanding practical code execution! Challenge requirements passed cleanly.
+200 XP
Don't Lose Your Milestones!
You are in Guest Mode.
Create your free account
so your XP, badges, and progress remain safely saved when you logout or switch devices!
Roadmap
Next Mission →