Menu

Examples using library

2010-07-21
2013-04-22
  • Oleksii Pustovalov

    Put some examples to work with library.

     
  • Oleksii Pustovalov

    For example you have next task:
    You have input data:
    $data = array(1, 2, 'change', 'examples', -1, 'examples');
    You need select only strings records delete dublicate and using handler $model->insert() insert each record to db:

    Use next code:
    SeqLibrary::fromarray($data)->select($is_string)->distinct()->each($model->insert);

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.