Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Lösung

Verwenden Sie eine foreach-Schleife:

$filme = array(...);

foreach ($filme as $film) {
    if ($film['verkaufszahl'] < 5000000) { $flops[] = $film; }
}

Oder array_filter():

$filme = array(...);

function flops($film) {
    return ($film['verkaufszahl'] < 5000000) ? 1 : 0;
}

$flops = array_filter($filme, 'flops');

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint