← All tasks
🧮
Beginner

Write Environment-Based Secret Loading

⏱ 3 min ⭐ 90 XP 🔁 3 attempts allowed

What you'll do

Write the PHP expression that loads a database password from an environment variable instead of hardcoding it.

Scenario

A config file currently has the production database password written directly into the source code.

Ready to try it?

Create a free account and subscribe to take "Write Environment-Based Secret Loading". Earn 90 XP and track your internship progress.

Already have an account? Sign in