On Mon, Jan 21, 2013 at 8:37 PM, Oliver Betz <[email protected]> wrote:
>
> >>>>>> BTW: Is there a simple way to get something like
> >>>>>> array_merge($_GET, $_POST)["useform"];
> >>>>>> in PHP older than 5.4?
> >>>>>> Excuse my ignorance, I'm a "plain old C" programmer.

Never knock a C programmer!  They're keeping the world rotating on its
axis! :-)

It's a bit boring and C-like, but why not just use a simple ternary
operator?

isset($_GET['useform']) ? $_GET['useform'] : @$_POST['useform'];

-Peter
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to