Skip to content

Instantly share code, notes, and snippets.

@joel-extremo
Created September 18, 2018 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joel-extremo/8d6a253c4d223374ee150f352b82b994 to your computer and use it in GitHub Desktop.
Save joel-extremo/8d6a253c4d223374ee150f352b82b994 to your computer and use it in GitHub Desktop.
<?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