ManojVarma Posted June 16, 2015 Share Posted June 16, 2015 Write an application which accepts the date and time as command line parameter and outputs if its Work or Free. work hours are monday to friday and timings 9am to 4 pm? by using :php -f app.php --'2013-01-12 10:24:57' can anyone write a code for it? so important and fast Link to comment https://forums.phpfreaks.com/topic/296856-php-cli-how-to-take-input-from-command-prompt-important-and-urgent/ Share on other sites More sharing options...
Barand Posted June 16, 2015 Share Posted June 16, 2015 http://php.net/manual/en/reserved.variables.argv.php Link to comment https://forums.phpfreaks.com/topic/296856-php-cli-how-to-take-input-from-command-prompt-important-and-urgent/#findComment-1514080 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.