Answer this Question:

How is function define in PHP and Java ?

 Posted by: Ambuj Kumar    12 months ago    1 Answer

Post Answer and Earn Credit Points:

For each correct answer you will get 5 credit points and the best selected answer will get 25 credit points. Wrong answers will not be credited and can damage your profile ratings.

Please login to give answer
Ans: Before knowing how function define first we go what exactly a function its elements and parameter. Functions are small modules to work with together or alone . Have return value. Have arguments In php there is no return type declaration of function and we used function keyword same as in JavaScript. For example function myname(){echo "hey";}// here function a keyword and myname is function name... While in java.... Function has.. Return value Arguments For example int add(int a,int b){ int c=a+b; r eturn c;} // add is function name ,a,b,c are arguments

 Answer by: Asmaul Husna     4 months ago