This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Personne | |
| { | |
| public $nom; | |
| public $prenom; | |
| public $adresse; | |
| public $dateNaissance; | |
| public function __construct($nom, $prenom, $adresse, $dateNaissance) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Bicycle | |
| { | |
| /** | |
| * @var string | |
| */ | |
| private $color; | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $indianaMovies = [ | |
| ['titre' => 'Indiana Jones et la Dernière Croisade', 'acteurs' => ['Harrison Ford', 'Sean Connery', 'Julian Glover']], | |
| ['titre' => 'Indiana Jones et le Temple maudit', 'acteurs' => ['Kate Capshaw', 'Harrison Ford', 'Jonathan Ke Quan']], | |
| ['titre' => 'Les Aventuriers de l\'Arche Perdue', 'acteurs' => ['Karen Allen', 'Paul Freeman', 'Alfred Molina']] | |
| ]; | |
| foreach ($indianaMovies as $movie) { | |
| echo "<p>Dans le film <b>{$movie['titre']}</b>, les principaux acteurs sont : </p>"; | |
| echo "<ul>"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $message = "aopi?sgnirts@#?sedhtg+p9l!"; | |
| $getKeyNumber = strlen($message)/2; | |
| $getSubString = substr($message, 5, $getKeyNumber); | |
| $replaceChars = str_replace('@#?', ' ',$getSubString); | |
| $decodedSentence = strrev($replaceChars); | |
| echo $decodedSentence; | |
| echo "<h1>La phrase décodée : j'ai appris toutes les ficelles des strings</h1>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $movieTitle = "Indiana Jones et la dernière croisade";//string | |
| $isMovieSeen = true; //boolean | |
| $movieYear = 1989; //integer | |
| $movieScore = 8.2; //float | |
| echo "<h1>".$movieTitle."</h1>"; | |
| if($isMovieSeen) | |
| { | |
| echo "<p>J'ai vu ce film</p>"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component, Fragment } from 'react' | |
| import mapboxgl from 'mapbox-gl' | |
| import io from 'socket.io-client' | |
| import './pulsating.css' | |
| mapboxgl.accessToken = {TOKEN}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component, Fragment } from 'react' | |
| import ReactDOM from 'react-dom'; | |
| import mapboxgl from 'mapbox-gl' | |
| import { jsx, css, keyframes } from '@emotion/core' | |
| import io from 'socket.io-client' | |
| import MapView from './MapView' | |
| import './pulsating.css' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component, Fragment } from 'react' | |
| import ReactDOM from 'react-dom'; | |
| import mapboxgl from 'mapbox-gl' | |
| import { jsx, css, keyframes } from '@emotion/core' | |
| import io from 'socket.io-client' | |
| import MapView from './MapView' | |
| import './pulsating.css' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component, Fragment } from 'react' | |
| import ReactDOM from 'react-dom'; | |
| import mapboxgl from 'mapbox-gl' | |
| import { jsx, css, keyframes } from '@emotion/core' | |
| import io from 'socket.io-client' | |
| import MapView from './MapView' | |
| import './pulsating.css' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import { Menu, Form, Radio, Select } from 'semantic-ui-react'; | |
| const colorHair = [ | |
| { key: 'No Hair', value: 'No Hair', text: 'No Hair' }, | |
| { key: 'Black', value: 'Black', text: 'Black' }, | |
| { key: 'Blond', value: 'Blond', text: 'Blond' }, | |
| { key: 'Brown', value: 'Brown', text: 'Brown' }, | |
| { key: 'White', value: 'White', text: 'White' }, |
NewerOlder