Explain about Functions in PHP?



Explain about Functions in PHP?..

Answer / zahid

There are type type of function in php,
User defined function
System defined function
Example of user defined function

function abc()
{
return "hello world";
}

echo abc();

Example of systek defined function

$name = "Zahid";
echo strlength($name);

//Outpur 5, here is strlength is php system defind, and many more function availalbe in php

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Explain how we can retrieve the data in the result set of mysql using php?

0 Answers  


What does $_server mean?

0 Answers  


What type of headers have to be added in the mail function to attach a file?

0 Answers  


What is api example?

0 Answers  


Does php have multiple inheritance?

0 Answers  






What is string and its function?

0 Answers  


what method is used to get a user's IP address?

2 Answers  


Tell me how is it possible to propagate a session id?

0 Answers  


Whhat is a Functions

1 Answers   IQ,


How is the ternary conditional operator used in php?

0 Answers  


How to get path of php.ini with a php script?

1 Answers  


What is the use of explode() function?

0 Answers  


Categories