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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.