Session::set_answer( integer $id )
Description #
Set an answer id in session’s answers offset.
Parameters #
- $idinteger (Required) Answer id.
Source #
File: includes/class/class-session.php
public function set_answer( $id ) { $answers = $this->get( 'answers' ); if ( ! $answers ) { $answers = array(); } $answers[] = $id; $this->set( 'answers', $answers ); }
Expand full source code Collapse full source code View on GitHub: includes/class/class-session.php:191
Add your comment