Bettering
asked on
PHP REGEXP PLEASE (I CANT BELIEVE I CANT FIGURE THIS OUT FROM ALL THE EXAMPLES)
odes.php%3Fusr_click_id%3D 2151%26usr _schedule_ id%3D24x7% 26ste
I need the # 2151 from a page full of html but the above is a 'snippet' from it
I need the # 2151 from a page full of html but the above is a 'snippet' from it
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
THANK YOU
Try:
<?php
$url = 'odes.php%3Fusr_click_id%3
$_url = urldecode($url);
$_parts = parse_url($_url);
$_query = $_parts['query'];
parse_str($_query, $_array);
echo 'Click id: '.$_array['usr_click_id'];
?>
Regards,
Roonaan