Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url=file_get_contents("https://en.wikipedia.org/w/api.php?action=query&titles=Haw%20Par%20Villa&prop=revisions&rvprop=content&format=json");
- $decode=json_decode($url,true);
- $slice=array_slice($decode, 1);
- $content=array_values($slice['query']['pages'])[0]['revisions'][0]['*'];
- echo $content;
- ?>
Add Comment
Please, Sign In to add comment