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

What is basic php?

0 Answers  


What type of comments are supported by PHP.

0 Answers  


Is variable name casesensitive in php?

0 Answers  


Differentiate echo vs. Print statement.

0 Answers  


what do you mean by webserver's document root?

3 Answers  






Is the cookies are available on cross domain?

2 Answers  


What is http php?

0 Answers  


What is the difference between mysql_fetch_object and mysql_fetch_array?

10 Answers   Sarv,


What are classes in php?

0 Answers  


What IS PHP?

3 Answers   Reliance,


What is the super method?

0 Answers  


What is mem_cache ? How do you put a database query into that ?

5 Answers   NIIT,


Categories