What are parts of a PHP function named?
Posted
by
MikeG
on Stack Overflow
See other posts from Stack Overflow
or by MikeG
Published on 2012-11-28T16:43:11Z
Indexed on
2012/11/28
17:04 UTC
Read the original article
Hit count: 179
php
|user-defined-functions
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 */
}
© Stack Overflow or respective owner