note 72061 added to function.ps-get-value

From: Date: Sun, 31 Dec 2006 17:32:16 +0000
Subject: note 72061 added to function.ps-get-value
Groups: php.notes 
Request: Send a blank email to php-notes+get-121145@lists.php.net to get a copy of this message
Note that the modifier parameter is REQUIRED in some (perhaps all) cases where you would not believe it to be required but optional: <?php $texty=ps_get_value($ps,'texty'); // does NOT work! // but this works, however: $foo=NULL; $texty=ps_get_value($ps,'texty',$foo); // DOES work! // this works too: $texty=ps_get_value($ps,'texty',NULL); ?> if your script just fails and sends a file with zero length to your browser just try the workaround above. saves time and you will not get upset ;) would be nice if somebody would be able to tell why pslib behaves this way ... PHP version 4.4.4-8, pslib verision 0.2.7-1 (Debian etch) Bye and a happy new year! Tilman ---- Server IP: 217.13.201.10 Probable Submitter: 80.142.240.72 ---- Manual Page -- http://www.php.net/manual/en/function.ps-get-value.php Edit -- https://master.php.net/note/edit/72061 Del: integrated -- https://master.php.net/note/delete/72061/integrated Del: useless -- https://master.php.net/note/delete/72061/useless Del: bad code -- https://master.php.net/note/delete/72061/bad+code Del: spam -- https://master.php.net/note/delete/72061/spam Del: non-english -- https://master.php.net/note/delete/72061/non-english Del: in docs -- https://master.php.net/note/delete/72061/in+docs Del: other reasons-- https://master.php.net/note/delete/72061 Reject -- https://master.php.net/note/reject/72061 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#121145) next »