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

Answers were Sorted based on User's Feedback



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

Answer / krisha

think count($_POST) will work.check it out.

Is This Answer Correct ?    27 Yes 6 No

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

Answer / avishek kumar

we can use count() function for it like

count($_POST) ;

Is This Answer Correct ?    7 Yes 3 No

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

Answer / 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

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

Answer / vibhor

count($_POST)
count counts the number and $_POST gets all the values who
are posted in form.
I get http://quizplaza.com It is great site that will help
to prepare in examinations and jobs. There are million of
question answer

Is This Answer Correct ?    2 Yes 0 No

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

Answer / sudipto

It will be count($_REQUEST), it will work

Is This Answer Correct ?    4 Yes 13 No

Post New Answer

More PHP Interview Questions

Write down the code for save an uploaded file in php.

0 Answers  


What is the use of htmlentities in php?

0 Answers  


Which cryptographic functions in php returns the longest hash value?

0 Answers  


How to create an empty array in php?

0 Answers  


What are the different types of array in php?

0 Answers  


How to call javascript function in php on button click?

0 Answers  


How can you submit a form without a submit button?

0 Answers  


What is meant by MIME?

0 Answers  


What is a variable cost example?

0 Answers  


How do you define a constant?

0 Answers  


What is php written in?

0 Answers  


What does the function get_magic_quotes_gpc() means?

0 Answers  


Categories