a little help

Hello all!

I’m a little new to php so just wanted to ask for some help.

OK So what I’m trying to do is remove parts of a web address for

Example:
This is the full web address
http://*****.com/index.php?fuseaction=i … 12g4frft78

I would like to remove &set=Random letters and numbers and leave everything else how would I do that?

thanks in advance

u may use regex, this is what most people would do.

As i don’t like regex i would search for the position and use substring.
[php]$url=substr($url,0,strpos($url,’&set=’));[/php]

just read some more about regex or string-functions on http://php.net/manual to find the best way for u to do this.

Sponsor our Newsletter | Privacy Policy | Terms of Service