- Make an array with random integer elements.
- Sort it an ascending order
- Print top value using array_slice function.
<?php $arr = array ( 11, 53, 14, 2, 41, 5, 10, 17, 60, 28, 0 ); rsort($arr); $top_elements = array_slice($a, 0, 5); print_r($top_elements); ?>
Hello, My Name is pradip parker . I am a Web Developer, Professional Blogger from India. i love and like web designing and developing, i have two year of experience in programming and developing I am the founder of programmingconcept. I started this blog in 2017 to for help developers by providing easy,small and best tutorials.
I actually wanted to write down a small comment to be able to say thanks to you for those lovely items you are giving out on this website. My particularly long internet lookup has finally been rewarded with extremely good tips to exchange with my companions. I ‘d believe that we site visitors actually are rather endowed to exist in a useful place with so many brilliant people with useful secrets. I feel very much privileged to have encountered the website and look forward to tons of more cool times reading here. Thanks a lot once again for everything.
I’ve been absent for some time, but now I remember why I used to love this blog. Thank you, I will try and check back more frequently. How frequently you update your site?
I just want to say I’m beginner to blogging and site-building and definitely enjoyed your web blog. Probably I’m going to bookmark your blog . You absolutely have terrific articles. Thanks a bunch for sharing your webpage.
Ha, here from bing, this is what i was searching for.
stays on topic and states valid points. Thank you.
Hello, glad that i found on this in google. Thanks!
Intresting, will come back here again.
I like this site because so much useful stuff on here : D.
Hello, bing lead me here, keep up great work.
This is good. Thanks!
This does interest me
bing took me here. Thanks!
Great, this is what I was browsing for in bing
Cheers, great stuff, I like.
yahoo brought me here. Thanks!