What is url ?
- URL stands for Uniform Resource Locator.
- url is the address to particular webiste in the browser.
- example : https://www.google.com/
What is URI segment in php or how to get value from url ?
URI segment is the function that help to get parameters from url in browser. the parameter may be in the form of string or encoded array form.
syntax : $this->uri->segment(number);
Here number is the parameter position , like https://www.facebook.com/pages/
example : $this->uri->segment(1);
here www.facebook.com is considered as 0 parameter position
here pages is considered as 1 parameter position, so if we want to
echo $this->uri->segment(1);
output : pages.
What is URI Segment ?
Reviewed by Admin
on
March 20, 2020
Rating:

No comments: