Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers

How would you fall back on the default value of 'Unknown', if a request-parameter is missing or empty?

$name = (!empty($_GET['name'])? $_GET['name'] : ''Unknown'');
$name = (!empty($_GET['name'])? $_GET['name'] = ''Unknown'');
You can't because if 'name' is not set in the URL, it will produce an error.
$name = (empty($_GET['name'])? $_GET['name'] .= ''Unknown'');
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon