I want to grab the data between “Season” and “Episode”
What php function can i use for this, im not sure if explode() will work.
$testt = "Watch The Show Season 3 Episode 8 - The Show Title" ;
I want to grab the data between “Season” and “Episode”
What php function can i use for this, im not sure if explode() will work.
$testt = "Watch The Show Season 3 Episode 8 - The Show Title" ;
Or
$testt = "Watch The Show Season 3 Episode 8 - The Show Title" ;
preg_match( '#Season (.) Episode#', $testt, $var);
var_dump( $var[1]) ;
$split = explode('Season', $test);
$split2 = explode('Episode', $split[1]);
$season = trim($split2[0]);