Created
August 22, 2012 21:34
-
-
Save cccaldas/3429604 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
public static function find($id) { | |
$videos = self::getAll(); | |
foreach ($videos as $item) { | |
if($item->id == $id) | |
return $item; | |
} | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment