How can you count number of parameters given in a URL by
POST method?

Answer Posted / ghan shyam

you can count parmeter using cout function or sizeof function

count($_POST)

sizeof($_POST)

because parameter sent by any method(POST OR GET METHOD) comes in array

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is regex in html?

510


What does mysqli_query return?

519


Does cors prevent csrf?

529


What software is required for php?

535


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

483






How to create an array from php string?

527


What is default session time and path in PHP. How to change it?

542


Explain what is the function file_get_contents() usefull for?

506


Do while loops?

526


What is the use of htmlspecialchars in php?

524


What are the difference between array_keys() and array_key_exists() in php?

539


Define object-oriented methodology?

568


What are some new features introduced in php7?

8376


How many types of arrays are there in php?

535


Describe the security vulnerability of PHP?

608