Skip to content

Instantly share code, notes, and snippets.

@emalgholzad
Last active March 7, 2018 15:18
Show Gist options
  • Save emalgholzad/0f9d0c3c55375d19dc0e70b188590920 to your computer and use it in GitHub Desktop.
Save emalgholzad/0f9d0c3c55375d19dc0e70b188590920 to your computer and use it in GitHub Desktop.
Dare.it linkedin post rewrite in simple PHP function
<?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