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

How to restrict the number of users login ? For ex:- if the allowed login is 10, for 11th user, the application should restrict them from login.

1 Answers  


What is the difference between session_unregister() and session_unset()?

0 Answers  


Is php outdated 2019?

0 Answers  


Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?

0 Answers  


am fresher in php ..am finished my linux,apache,mysql,and php(LAMP) course please can any one tell openings for freshers in php ...And please tell how much i demand as a fresher in PHP field just say approximately or assumption ..? at present am staying in chennai am looking my job in chennai only or else in bangalore ... hello experts please answer this question ?

2 Answers   HCL,






How many types of inheritances used in php and how we achieve it.

0 Answers  


How many ways we can give the output to a browser?

6 Answers  


How can I load data from a text file into a table?

0 Answers  


What is the functionality of the function strstr and stristr?

2 Answers  


How long is a php session valid?

0 Answers  


What is difference between rest api and restful api?

0 Answers  


What is faster in php?

0 Answers  


Categories