Method: v::passwords

Checks for two valid, matching password

Info

Syntax

v::passwords($password1, $password2)

Parameters

Return (boolean)

Example


if(v::passwords('u', 'u')) echo 'The passwords are valid';
// btw: they are entered correctly twice, but too short