I wrote this (I underlined the relevant parts for you):
> >You'll need something more clever, because > >an undefined key 'CUST_ID' in $_POST['CUST_ID'] will strill throw a
Consider this:
----------------------------------- <?php
error_reporting(E_ALL);
function setor(&$param, $default) { return (isset($param) ? $param : $default); }
$x = setor($x, 10); ///Should Produce an E_NOTICE
echo gettype($x) . ':' . $x . "\n";
?> -----------------------------------
This DOES NOT produce an E_NOTICE like you said (notice the &). However, $param1 is defined and NULL inside the function, even though $x was not a defined variable outside the function??
~Jason
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php