PageRenderTime 11ms CodeModel.GetById 9ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 1ms

/lib/jquery-validate/demo/milk/users.php

#
PHP | 12 lines | 11 code | 0 blank | 1 comment | 2 complexity | e0289bb5aed9b478f4ecae868cd7d2c4 MD5 | raw file
 1<?php
 2$request = trim(strtolower($_REQUEST['username']));
 3//sleep(2);
 4usleep(150000);
 5$users = array('asdf', 'Peter', 'Peter2', 'George');
 6$valid = 'true';
 7foreach($users as $user) {
 8	if( strtolower($user) == $request )
 9		$valid = 'false';
10}
11echo $valid;
12?>