Created
June 16, 2017 15:21
-
-
Save devmsh/4d3365aafeb169ecac7ef2ddaa153a5e to your computer and use it in GitHub Desktop.
This file contains 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 | |
$user = [ | |
"workHours" => [ | |
["from" => "08:00:00", "to" => "16:00:00"], | |
[], | |
["from" => "08:00:00", "to" => "16:00:00"], | |
[], | |
["from" => "08:00:00", "to" => "16:00:00"], | |
[], | |
["from" => "08:00:00", "to" => "16:00:00"], | |
], | |
"sessions" => [ | |
[ | |
"date" => "17/6/2017", "status" => "approved", | |
"from" => "09:00:00", "end" => "11:00:00", | |
], | |
[ | |
"date" => "17/6/2017", "status" => "new", | |
"from" => "12:00:00", "end" => "02:00:00", | |
], | |
], | |
]; | |
function freeAt($user,$newSession){ /* ... */ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment