Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Efficient Programming with PHP Functions

via CodeSignal

Overview

Launch your journey into PHP functions with this course, perfect for those new to the language. We’ll start with the essentials of defining and calling functions and move on to the intricacies of parameters and return values. Understand the scope of variables to manage your data effectively. Explore recursion to solve problems recursively and make the most of PHP’s built-in functions.

Syllabus

  • Lesson 1: Crafting Custom Functions
    • Running Your First PHP Function
    • Return a Launch Message
    • Fix the Rocket Function
    • Add the Function
    • Create a Custom PHP Function
  • Lesson 2: Passing Mission Details
    • Running the Fuel Calculator
    • Directly Passing Parameters
    • Change to a Flexible Fuel Calculator
    • Fix the Fuel Calculator
    • Complete the Food Calculator Task
    • Write a Travel Time Calculation Function
  • Lesson 3: Tracking Variable Scopes in PHP
    • Tracking Variable Scopes Explained
    • Modify Variable Scope with Global
    • Fix Variable Scope Error
    • Modify Temperature Variable Scope
    • Tracking Variable Scopes in PHP
  • Lesson 4: Endless Journey Through Recursion
    • Understanding Recursive Countdown
    • Modify Recursive Countdown Steps
    • Fix the Countdown Timer
    • Complete Recursive Countdown Function
    • Write a Countdown Timer Function
  • Lesson 5: Using the Power of In-Built Controls
    • Exploring PHP Array Functions
    • Changing Array Elements with PHP
    • Fix Array Manipulation Bug
    • Using PHP Array Functions
    • Master PHP Built-in Array Functions

Reviews

Start your review of Efficient Programming with PHP Functions

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.