Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- <title> yung-adisz ma sztos</title>
- <meta charset="utf-8">
- </head>
- <body>
- <h1>D.S.</h1>
- <?php
- // foreach($yung as $x){
- // echo $x.'</br>';
- // }
- $adisz="Sandra, Jerzy, Anna, Wanda, Pawel, Lucja, Piotr";
- $yung=explode(", ", $adisz); //0..6
- sort($yung); //increasing
- $yung=array_reverse($yung); //reverses the whole array
- array_shift($yung); //removes first element
- array_push($yung,"Wladyslaw","Daniel"); //adds few more elements
- array_unshift($yung, "Alicja"); //adds alice as first element
- $gottseidank=array("Matthew", "Jamel", "Tytus", "Carl", "Jessica", "Jesse", "Walter"); //define new array
- $guccigangcunt=array_merge($yung, $gottseidank); //merging two arrays into one
- foreach($guccigangcunt as $x){
- echo $x.'</br>';
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement