Guest User

Untitled

a guest
Jan 18th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function fetchValue($string,$start,$end){
  2. $str = explode($start,$string);
  3. $str = explode($end,$str[1]);
  4. return $str[0];
  5. }
  6.  
  7. $exampleString = "long live stackoverflow";
  8. $fetchString = fetchValue($exampleString,"long "," stackoverflow";
  9. echo $fetchString;
Add Comment
Please, Sign In to add comment