for example if my url are: http://127.0.0.1/?text=lonelyday
how can i obtain the part after ?text=, that is "lonelyday" in this case?
Really need help, Im just a beginner.
for example if my url are: http://127.0.0.1/?text=lonelyday
how can i obtain the part after ?text=, that is "lonelyday" in this case?
Really need help, Im just a beginner.
Take a look at [man]parse_url/man, if you have the URL as a string.
If you are talking about accessing the variable from the query string, then use $_GET['text'].