Cannot get data in INPUT_GET in php


I am using the RESTful webservice for my application. In that I cant able to get the data in INPUT_GET.


$courseYear = filter_input(INPUT_GET, 'CourseYear', FILTER_SANITIZE_STRING);
var_dump($courseYear); //null

I gave the GET method body value asCourseYear=2005-2007

Please help me to get the value.

People are also looking for solutions to the problem: arrays - PHP - Skip object of class null


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.