getvar
- Ariadne >
- Library >
- Ariadne 2.2 >
- Manuals >
- Programmers Reference >
- Classes >
- Object >
- PINP Methods >
(mixed) getvar($varname)
Returns a value stored earlier with putvar().
| Argument | Description |
|---|---|
| (string) $varname | The name of the variable to return. |
getvar() retrieves the value of a variable previously
stored with putvar().
$varname must be the same name as was used to
store it.
Variables stored with putvar() will be
available using this function only during the processing of the page request. It
will be available from any template after storing it with putvar(),
but when the main template has finished and the request has been handled, the
data disappears. If you have data you want available over many requests, use
getsessionvar()
and
instead.putsessionvar()

