Login
Remember
Register
Ask a Question
Which of the following is the correct way to create a function in PHP?
+1
vote
asked
May 11, 2022
in
PHP
by
sharadyadav1986
Which of the following is the correct way to create a function in PHP?
a) Create myFunction()
b) New_function myFunction()
c) function myFunction()
d) None of the above
php-function
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 11, 2022
by
sharadyadav1986
c) function myFunction()
Description: We can declare and call user-defined functions easily. The syntax to declare user-defined functions is given below -
function functionname(){
//code to be executed
}
...