Last active
March 7, 2018 15:18
-
-
Save emalgholzad/0f9d0c3c55375d19dc0e70b188590920 to your computer and use it in GitHub Desktop.
Dare.it linkedin post rewrite in simple PHP function
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 | |
function sendYourResume($language, $experience) | |
{ | |
$result = ''; | |
switch (TRUE) { | |
case ($language === "PHP" && $experience >= 5): | |
$result = "we are looking for senior developers."; | |
break; | |
case ($language === "PHP" && $experience < 5): | |
$result = "We are always open for new talent."; | |
break; | |
} | |
return "Goodmorning! we are Dare.it and we are developing e-commerce. Please send us your CV to job@care.it, " . " " . $result; | |
} | |
echo sendYourResume("PHP", 5); | |
echo sendYourResume("PHP", 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment