Get words between string of url with php -


i want select specific words of url. let have url localhost/index.php?exam=one&people=two

the question, how "one" , "two" php? read preg_match function, still confuse regulation expression pattern. advance

$query - parse_url('localhost/index.php?exam=one&people=two', php_url_query); parse_str($query, $keys);  print_r(array_values($keys)); // <- want 

but beware of magic quotes in php < 5.4, parse_str() affected setting


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -