Coder Social home page Coder Social logo

cooking-data-with-php's Introduction

Cooking data with PHP!

Dictionary

First download a dictionary of the French language and then load it in your code:

    $string = file_get_contents("dictionnaire.txt", FILE_USE_INCLUDE_PATH);
    $dico = explode("\n", $string);

The result is an array containing all the words.

Exercices

  • How many words this dictionary contains?
  • How many words have exactly 15 characters?
  • How many words containing the letter 'w'?
  • How many words end with the letter 'q'?

List of movies

Download the top 100 movies viewed in the United States on the iTunes platform.

    $string = file_get_contents("movies.json", FILE_USE_INCLUDE_PATH);
    $brut = json_decode($string, true);
    $top = $brut["feed"]["entry"]; # list of movies

Exercices

  • Display the top 10 movies in this form:
    1 Mission: Impossible - Rogue Nation
    2 …
    …
    10 …
  • What is the ranking of the movie "Gravity"?
  • What is the director of "The LEGO Movie"?
  • How many movies were released before 2000?
  • What is the most recent film? The oldest?
  • What is the category most represented film?
  • What is the most present director in the top100?
  • How much would it cost to buy the top 10 on iTunes? or rent it?
  • What is the month with the most cinema releases?
  • What are the top 10 movies to see with a limited budget?

cooking-data-with-php's People

Contributors

yvan-sraka avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.