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
Post a Comment