Solar_Request::postAndFiles()

public mixed Solar_Request::postAndFiles ( string $key = NULL , string $alt = NULL )

Retrieves an unfiltered value by key from the $post and $files properties, or an alternate default value if that key does not exist in either location.

Parameters

  • (string) $key: The $post and $files key to retrieve the value of.

  • (string) $alt: The value to return if the key does not exist in either $post or $files.

Returns

  • (mixed) The value of $post[$key] combined with $files[$key], or the alternate default value.

Description

Retrieves an unfiltered value by key from the $post and $files properties, or an alternate default value if that key does not exist in either location.

Files takes precedence over post.



Local