Created
September 18, 2018 11:18
-
-
Save joel-extremo/8d6a253c4d223374ee150f352b82b994 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function FunctionName() | |
{ | |
$url = $this->GLOBAL_cdn_streaming_domain; | |
array_map(function($movie) use ($url){ | |
$movie->video_url = $url . $movie->video_url; | |
$movie->image = $url . $movie->image; | |
$movie->big_image = $url . $movie->big_image; | |
return $movie; | |
}, $movies); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment