- explode: documentation ( source)
<?php
class BlogCommentRepository {
public function find($something) {
echo "called!";
return 1;
}
}
$blogCommentRepository = new BlogCommentRepository();
$blogCommentIds = array(1,2,3,4);
foreach ($blogCommentRepository->find(explode(",", $blogCommentIds)) as $blogCommentId) {
//
}