Functions in PHP [Exercises]

Improve Your Programming Skills in PHP

3.88 (4 reviews)
Udemy
platform
English
language
Other
category
instructor
Functions in PHP [Exercises]
34
students
32 mins
content
Jul 2020
last update
$34.99
regular price

What you will learn

Learn how to define simple functions and acquire practical experience

Learn how to define anonymous functions and acquire practical experience

Understand the fact that each and every function is actually an object

Become familiar with the simplicity of passing over functions when calling higher order functions

Learn how to access global variables from within the scope of a function

Learn how to define variadic functions, and learn about the cases in which they become highly useful

Learn about PHP capabilities when it comes to arguments unpacking

Become familiar with recursive functions and learn how to define them

Description

When doing the first steps in learning a programming language, the role of practice becomes highly important. The more programs you code the better understanding you achieve. This practical experience can be acquired through work as a software developer, or it can be acquired through extensive coding exercises. This course provides everything you need in order to take the second approach when learning PHP.

Taking This Course You will Improve Your PHP Programming Skills, and move one step forward in your path to dominate this programming language.

  • Learn how to define simple functions and how to define anonymous ones

  • Understand what a recursive function is, and how to implement it

  • Become familiar with variadic functions and learn how to define them

  • Learn how to implement a function that accesses global variables

  • Learn how to write code that unpacks arguments we pass over

CODING EXERCISES THAT FOCUS ON THE USE OF FUNCTIONS AND FOCUS ON HOW TO DEFINE FUNCTIONS ARE CRUCIAL FOR EVERY STUDENT THAT WANTS TO BECOME A PROGRAMMER.

PHP supports various forms of functions, such as anonymous functions, variadic functions, recursive functions, higher-order functions, and simple ones. This course focuses on teaching these various forms through extensive coding exercises.

Each and every coding exercise includes code the student needs to complete its missing parts. Taking this course, if you feel that you would like to have more exercises please don't hesitate and let us know. Please specify the topic in which you would like to have more coding exercises. We will take your requests into account when working on the next version of this course.

If you encounter an exercise you fail to complete and/or have difficulties to understand its solution please don't hesitate and let us know. We will prepare a video that explains that specific exercise and its solution. If a video already exists and you still need more explanations please don't hesitate and let us know so we could improve the video that already exists or prepare a new one.

Content

Introduction

Introduction

Simple Functions

Calculating The Sum of Two Numbers (Difficulty Level 1/5)
Calculating The Sum of Two Numbers - Solution
Calculating BMI (Difficulty Level 1/5)
Calculating The Difference (Difficulty Level 1/5)
Calculating The Difference - Solution
Calculating The Multiplication of Three Numbers (Difficulty Level 1/5)
Calculating The Multiplication of Three Numbers - Solution
Calculating the Total of Bank Accounts' Balances (Difficulty Level 1/5)
Calculating Total of Array Numbers (Difficulty Level 2/5)
Calculating Factorial (Difficulty Level 2/5)
Calculating Factorial - Solution
Even Numbers Checking (Difficulty Level 1/5)
Even Numbers Checking - Solution
Calculating The Average (Difficulty Level 2/5)
Finding The Biggest (Difficulty Level 2/5)
Finding The Smallest (Difficulty Level 2/5)
Finding The Smallest Number - Solution
Array of Even Numbers (Difficulty Level 3/5)
Array of Odd Numbers (Difficulty Level 3/5)
Checking Prime (Difficulty Level 4/5)

Anonymous Functions

Calculating The Sum of Two Numbers (Difficulty Level 1/5)
Calculating The Sum of Two Numbers - Solution
Calculating The Difference (Difficulty Level 1/5)
Calculating The Multiplication (Difficulty Level 1/5)
Finding The Biggest (Difficulty Level 2/5)
Finding The Smallest (Difficulty Level 2/5)
Calculating The Average (Difficulty Level 2/5)
Calculating Factorial (Difficulty Level 2/5)
Calculating Total of Array Numbers (Difficulty Level 2/5)

Variable Number of Arguments

Sum of Numbers (Difficulty Level 2/5)
Sum of Numbers - Solution
Multiplication of Numbers (Difficulty Level 2/5)
Finding The Biggest Number (Difficulty Level 2/5)
Finding The Smallest Number (Difficulty Level 2/5)

Accessing Global Variables

Calculating Tax (Difficulty Level 2/5)
Calculating Tax - Solution
Calculating VAT (Difficulty Level 2/5)
Calculating VAT for a Price (Difficulty Level 2/5)
Calculating TAX for Income (Difficulty Level 2/5)

Variadic Functions

Sum of Numbers (Difficulty Level 2/5)
Sum of Numbers - Solution
Multiplication of Numbers (Difficulty Level 2/5)
Finding The Biggest Number (Difficulty Level 2/5)
Finding The Smallest Number (Difficulty Level 2/5)

Arguments Unpacking

Finding The Closest Point (Difficulty Level 2/5)
Finding Closest Point - Solution
Simple Sum of Numbers (Difficulty Level 1/5)
Recursive Factorial Function (Difficulty Level 4/5)
Recursive Multiplication Function (Difficulty Level 4/5)
Recursive Residual Calculation Function (Difficulty Level 4/5)
Sorting Array of Strings (Difficulty Level 3/5)
Sorting Students (Difficulty Level 2/5)

Charts

Price

Functions in PHP [Exercises] - Price chart

Rating

Functions in PHP [Exercises] - Ratings chart

Enrollment distribution

Functions in PHP [Exercises] - Distribution chart

Related Topics

2978000
udemy ID
4/9/2020
course created date
5/21/2020
course indexed date
Bot
course submited by