thephpleague/monga — pull request #11 by maxtrunk (2014-12-08 21:27:12+00:00)
Title: Support both array and comma separated string as arguments

Hey Guys,

Don't you guys think this may be a good idea to support both array and comma separated string as arguments for dynamic query function?

$selectArray = array('id', 'username', 'age');

...
->find(function($query) use ( $selectArray ){
$query->select( $selectArray );
}
...