I need to get two words from an URL. So for example I have the following URL:
http://mydomain.com/alrajhi/invoice/108678645541
I need to get with PHP only \"alra
Check out 'parse_url' (PHP manual), a function that divides your url into its components and saves that to an array.