Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 1.27 KB

public Election--parseVotes.md

File metadata and controls

40 lines (22 loc) · 1.27 KB

public Election::parseVotes

Read it at the source

Description

public Election->parseVotes ( string $input [, bool $isFile = false] ): int

Import votes from a text source. If any invalid vote is found inside, nothing are registered.

input: string

String or valid path to a text file.

isFile: bool

If true, the input is evalatued as path to text file.

Return value:

(int) Count of the new registered vote.


Related method(s)


Tutorial