# rsvp/1.3.0/jquery-validate/demo/captcha/rand.php

RSVP and Event Management, version 1.3.0. 11 lines.

- Page: https://pluginprobe.com/plugins/rsvp/1.3.0/code/jquery-validate/demo/captcha/rand.php
- Raw: https://pluginprobe.com/plugins/rsvp/1.3.0/raw/jquery-validate/demo/captcha/rand.php
- Modified: 2011-05-27T15:54:00+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/rsvp/1.3.0/code/jquery-validate/demo/captcha/rand.php#L10-L20`.

```php
<?php

// Create a random string, leaving out 'o' to avoid confusion with '0'
$char = strtoupper(substr(str_shuffle('abcdefghjkmnpqrstuvwxyz'), 0, 4));

// Concatenate the random string onto the random numbers
// The font 'Anorexia' doesn't have a character for '8', so the numbers will only go up to 7
// '0' is left out to avoid confusion with 'O'
$str = rand(1, 7) . rand(1, 7) . $char;

?>
```
