[ create a new paste ] login | about

Link: http://codepad.org/SDsWmLmq    [ raw code | output | fork ]

PHP, pasted on Mar 29:
1
2
3
4
5
6
7
<?php
$data['index'] = null;
$is = isset($data['index']) ? 'isset' :'not isset';
$e = array_key_exists('index', $data) ? 'exists' : 'does not exists';
echo $is."\r\n";
echo $e;
?>


Output:
1
2
not isset
exists


Create a new paste based on this one


Comments: