Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fetchValue($string,$start,$end){
- $str = explode($start,$string);
- $str = explode($end,$str[1]);
- return $str[0];
- }
- $exampleString = "long live stackoverflow";
- $fetchString = fetchValue($exampleString,"long "," stackoverflow";
- echo $fetchString;
Add Comment
Please, Sign In to add comment