Jump to content

[SOLVED] Question about haystack param in ereg and eregi


jordanwb

Recommended Posts

If I pass in an array as seen here:

 

<?php

$username = "some random username";

$username_parts = explode (" ", $username);
if (!eregi("^([0-9a-z])*$", $username_parts)) // Not alphanumeric
{
$this->form_errors++;
}

?>

 

Will that be fine?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.