How can you count number of parameters given in a URL by
POST method?
Answers were Sorted based on User's Feedback
Answer / avishek kumar
we can use count() function for it like
count($_POST) ;
| Is This Answer Correct ? | 7 Yes | 3 No |
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 |
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 |
Are php short tags acceptable to use?
Should I use mysqli or pdo?
What are the current versions of apache, PHP, and mysql?
Tell me what are the __construct() and __destruct() methods in a php class?
What are the benefits of using queries?
Why php is used?
What is nginx and what is it used for?
What is the difference between get and post method in php?
What are the php functions?
Which MySQL function would you use to select a database?
Tell me what is the difference between characters 34 and x34?
Explain the installation of PHP on UNIX systems?