Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="NL">
- <h3>php lab 1.07</h3>
- <?php
- $boeken = array (
- array("titel"=> "Stoner", "auteur" => "John Williams",
- "genre" => "Fictie", "prijs" => 19.99 ),
- array("titel"=> "De circel", "auteur" => "Dave Eggers",
- "genre" => "Fictie", "prijs" => 22.50 ),
- array("titel"=> "Rayuela", "auteur" => "Cortazar",
- "genre" => "Fictie", "prijs" => 25.50 )
- );
- function printarray($arr){
- foreach($arr as $idx => $arrayn)
- if($idx == "prijs") {
- echo "$idx: $arrayn \n<br />";
- };
- };
- array_walk($boeken, "printarray");
- ?>
- <html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement