func_num_args() function returns the number of parameters/arguments passed to a function in PHP.
Home »
Php Interview Questions
,
php-interview-questions-answers
» find the number of parameters passed into function in PHP?
find the number of parameters passed into function in PHP?
PMA03:08
Categories: Php Interview Questions, php-interview-questions-answers
Related Posts:
What Is a Persistent Cookie? A persistent cookie is a cookie which is stored in a cookie file permanently on the browser's computer. By default, cookies are created as temporary cookies which stored only in the browser's memory. When the browser is c… Read More
in_array() function in php? It checks if a value exists in an array … Read More
What is CAPTCHA? CAPTCHA stands for Completely Automated Public Turing Test to tell Computers and Humans Apart.the application can be fairly assured that there is a human client using it. … Read More
What is the default session time in php and how can I change it? The default session time in php is until closing of browser … Read More
THE DIFFERENT TYPES OF ERRORS IN PHP? 1. Notices: These are trivial, non-critical errors that PHP encounters while executing a script – for example, accessing a variable that has not yet been defined 2. Warnings: These are more serious errors – for example, a… Read More
Cookies Versus Sessions? Cookies The setcookie( ) call needs to be before the HTML form because of the way the web works. HTTP operates by sending all "header" information before it sends "body" information. In the header, it sends t… Read More
What is the use of PEAR in php? PEAR is known as PHP Extension and Application Repository. It provides structured library to the PHP users and also gives provision for package maintenance. … Read More
What’s the special meaning of __sleep and __wakeup? __sleep returns the array of all the variables than need to be saved, while __wakeup retrieves them. … Read More
sorting an array? arsort() sort() natsort() … Read More
Associative Arrays? You can use string values as keys. For example, you might create an arraylike this: $myStuff = array();$myStuff[“name”] = “andy”;$myStuff[“email”] = “andy@fsdsd.ca”;Print $myStuff[“name”]; Associative arrays are different t… Read More
What is CURL? CURL stands for Client URL Library. CURL allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telne… Read More
How do you convert the while statement you created in question 3 into a for statement? $num = 1;while ($num <= 49) {echo $num.”<br />”;$num += 2;} … Read More
count the elements of an array? sizeof($array) – This function is an alias of count() count($urarray) – This function returns the number of elements in an array. … Read More
What Is a Function? You can think of a function as an input/output machine. This machine takes the raw materials you feed it (input) and works with them to produce a product (output). A function accepts values, processes them, and then performs… Read More
magic methods? Magic methods are the members functions that is available to all the instance of class Magic methods always starts with “__”. Eg. __construct All magic methods needs to be declared as public To use magic method they sh… Read More