Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $shipmentID = findExtract($response,"open_label_popup_", "()");
- $labelURL = "https://www.paypal.com/ca/cgi-bin/webscr?cmd=_ship-usps-label&shipment_id=".$shipmentID;
- function findExtract($longString, $startString, $endString){
- $start = strpos($longString, $startString) + strlen($startString);
- //echo $start;
- if ($start < strlen($startString) + 1){
- return false;
- }
- $end = strpos($longString, $endString, $start);
- $string = substr($longString, $start, $end - $start);
- //echo $string;
- return $string;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement