Whhat is a Functions

Answer Posted / nagaraju.ch

A function is a block of statement, A function will not execute immediately when we run, we have to call the function to execute
example

<?php
function name(){          // for creating a function

     echo "My name is -----";   

}

name();                   // calling the function

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List some array functions in php?

506


What is namespace and use in php?

530


Tell me how can you pass a variable by reference?

514


What are the four scalar types of php?

621


Tell me what does $_env means?

535






Tell me how to find current date and time?

546


How to read the entire file into a single string?

573


How to get a total number of rows available in the table?

488


Explain what is meant by pear in php?

535


What is the use of token in php?

508


What is meant by pdo in php?

552


What are the string function in php?

516


How to create connection in php?

527


What is PECL?

779


What are the advantages of object-oriented programming in php?

506