php - how to parse $_REQUEST? -
here checking , getting part of request, (the ids). print out entire request:
if (isset($_request['ids'])){ $amount = sizeof($_request['ids']); print_r($_request); echo "<br>$amount invitations sent"; } this how entire $_request prints out:
array ( [mfs_typeahead_req_form_4cf74f96db3688507476560] => start typing name [ids] => array ( [0] => 510149460 ) [fbs_258181898823] => \"access_token=258181898823|2.q_qb_yoreo0_xc4h8pxkrq__.3600.1291280400-100000664203700|lqtgr_oijtasgmek61awxmxfvfk&expires=1291280400&secret=85eteelzj8lkv82v_pwrsa__&session_key=2.q_qb_yoreo0_xc4h8pxkrq__.3600.1291280400-100000664203700&sig=d4cc0e4c0992ea29c0adfd60dc27185b&uid=100000664203700\" ) i need parse part @ end: &uid=100000664203700, '100000664203700'
$querystring = $_request["fbs_258181898823"]; $output = array(); parse_str($querystring, $output); print $output["uid"];
Comments
Post a Comment