Jump to content

how to show only ?q=12345


AndyPSV

Recommended Posts

Hello,

 

I've got link, e.g.: module1/blabala/?&loc=United-States?q=12345&dasasdas=321321

 

I want to only extract the phrase where:

 

 

if(strpos($_GET[0].$_GET[1].$_GET[2].$_GET[3].$_GET[4].$_GET[5],'?q=') !== false) {

...

 

here I want to get only value: 12345

 

How to get it?

 

--

 

2. how to remove string: ?q=NUMBER (e.g. ?q=12345) through preg_match()?

Link to comment
https://forums.phpfreaks.com/topic/231391-how-to-show-only-q12345/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.