How to invoke a user function?



How to invoke a user function?..

Answer / Kamlesh Kaushal

To invoke a user-defined function in PHP, you simply call the function name followed by parentheses. Here's an example: nnfunction myFunction() {n // code heren}nmyFunction();

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How to find the position of the first occurrence of a substring in a string?

1 Answers  


What is mysqli_query?

1 Answers  


How do I run a php file?

1 Answers  


What is substr() in php? And how it is used?

1 Answers  


Is PHP is procedure oriented or object oriented?

10 Answers   DLF, Net Solution,


"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.

1 Answers  


What are the differences between PHP3 and PHP4 and PHP5? what is the current stable version of PHP?

1 Answers  


How can I loop through the members of an array?

1 Answers   Rushmore Consultancy,


what is the url rewriting?how to rewrite the url? give any example

1 Answers  


How to remove an empty directory?

1 Answers  


Why using the htaccess file

2 Answers  


What is pdo in php why use?

1 Answers  


Categories