Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8906697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:43:19+00:00 2026-06-15T02:43:19+00:00

I am having trouble figuring out a problem and it is because I don’t

  • 0

I am having trouble figuring out a problem and it is because I don’t know the correct terms to be searching for. Could someone please name all the parts of a PHP function and if I’m missing something please add it.

function my_function(
            non_variable $variable_one,
            $variable_two = "",
            $variable_three ) {

    /* inside stuff (Statement?) */
}

The answer I’m looking for would look something like this

function: declaration
my_function: name
non_variable: Please Answer
$variable_one: variable filled with non_variable

The one I really need to know about are non_variable and $variable_one, Thanks!


EDIT: more detail about the function

function my_function(custom_name $company) {
    $website = $company->company_website;
    /* Additional stuff */
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:43:20+00:00Added an answer on June 15, 2026 at 2:43 am
    function foo(         // function declaration with function name
        SomeType $arg1,   // argument with type hint
        $arg2,            // argument
        $arg3 = ''        // argument with default value
    ) {                   // all above together: function signature
        // function body
    }
    

    Arguments may also be called “parameters” pretty much interchangeably.
    See:

    • http://php.net/manual/en/functions.user-defined.php
    • http://php.net/manual/en/functions.arguments.php
    • http://php.net/manual/en/language.oop5.typehinting.php
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read a similar post from someone who was having trouble figuring out where
I am having trouble figuring out exactly how to approach this problem and am
I'm having some trouble figuring out the right selector syntax for this problem and
I am having trouble figuring out one implementation problem, I have one class, it
I'm having trouble figuring out the problem with my code...I'm in the early stages
I am having trouble figuring out the correct order of transformations to apply on
im having trouble figuring out how to bind mouseout() to my entire nav bar
I've having trouble figuring out how to select based on a list in a
I'm having trouble figuring out how to filter a queryset appropriately for the following
I'm having trouble figuring out how to get my navigation property to update with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.