+1 vote
in PHP by
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

1 Answer

0 votes
by
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  

}

Related questions

+1 vote
asked May 13, 2022 in PHP by john ganales
+1 vote
asked May 11, 2022 in PHP by sharadyadav1986
...