php - URI segment does not get returned when using querystrings


I'm trying to paginate the search results returned by the query. I have the following URL:


Where I am trying to get the value of$start=5 from the URL using:

$start = $this->uri->segment(3);

It is not returning anything.

Where removing?query=post, i.e,blog/search/5 works fine. But I want to keep the query parameter and read the value.

People are also looking for solutions to the problem: php - Sort array of strings by 3rd-to-last character based on another array then sort on whole strings


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.