Skip to content

Add default function argument value sample #2

@yurm04

Description

@yurm04

Description

Explain default function argument values and include sample code. How can your function parameter take on a default value, even if no argument was passed to it?

Requirements

In the lecture 10 sample code, make changes to the index.php file. Add your explanation of default values in HTML (when to use, why they are useful, how to use them), and include samples with PHP code. Make sure to use comments in the PHP code to explain what is going on. Start your work on line 238 of index.php

Checklist

  • Title is short, sweet, to the point.
  • Issue is descriptive enough for anyone to come across it and know exactly what is being presented.
  • The correct labels have been added.
  • The expected behavior is described (if applicable).
  • Steps to reproduce the problem have been included (if applicable).
  • Screenshots were included (if applicable).

Mentions

Include anyone that should be mentioned in this issue
@yurm04

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions