Isset() in PHP

php

#1

What does this line of code mean?

$email = isset($_POST['email'] ) ? $_POST['email'] : '' ;

'email' is the name attribute in the form.

i tried writing only

$email = $_POST['email'];

but it didn't work...please help


#2

@abhi.borkakoty,
Start here on your quest for knowledge
http://stackoverflow.com/questions/4559925/why-check-both-isset-and-empty