Link to home
Start Free TrialLog in
Avatar of James Williams
James WilliamsFlag for United States of America

asked on

PHP GET string

<?php  error_reporting(0); $Cid = $_GET["imgID"]; ?>
 
  <php include ("CallImage?imgID=$????") ?>


This would be the data I have.

CallImage?imgID=1666690577102281968

How could I parse the numbers and extract   the 6 - 11 digit?
To get this?  

CallImage?imgID=905771

And help is greatly appreciated.


905771 = $????
Avatar of Loganathan Natarajan
Loganathan Natarajan
Flag of India image


$rest = substr($Cid, 6, -8);  // returns "cde"
ASKER CERTIFIED SOLUTION
Avatar of Loganathan Natarajan
Loganathan Natarajan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of James Williams

ASKER

Perfect.
I feel better  Now that I have been educated.
I appreciate the assistance.............
Selvol