Skip to content

Instantly share code, notes, and snippets.

@alexandreelise
Last active October 7, 2023 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandreelise/6135b3e20eb96af08c89d843951ee202 to your computer and use it in GitHub Desktop.
Save alexandreelise/6135b3e20eb96af08c89d843951ee202 to your computer and use it in GitHub Desktop.
Tiny hungry foodie php script
<?php
/**
* Tiny hungry foodie php script
*
* @package tinyhungryfoodie
* @author Mr Alexandre J-S William ELISÉ <code@apiadept.com>
* @copyright (c) 2009 - present . Mr Alexandre J-S William ELISÉ . Tous droits réservés.
* @license MIT
* @link https://apiadept.com
*/
do{
echo 'I am hungry: ' . PHP_EOL;
$input = fgets(STDIN);
echo 'Miam! Miam! : ' . $input . PHP_EOL;
}while($input !== ('end' . PHP_EOL));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment