Welcome Guest, Not a member yet? Register   Sign In
general php problem - ereg question
#1

[eluser]skattabrain[/eluser]
OK, so i upgraded php and looks like ereg and ereg replace are gone! so i have some old code in there, in regards to checking credit cards. I don't know what 2nd condition is doing ... the !ereg('5[1-5]', $ccnum)

Code:
if ($type == 'mastercard')
{
if (strlen($ccnum) != 16 || !ereg('5[1-5]', $ccnum)) return false;
}


Messages In This Thread
general php problem - ereg question - by El Forum - 02-26-2010, 04:49 PM
general php problem - ereg question - by El Forum - 02-26-2010, 05:15 PM
general php problem - ereg question - by El Forum - 03-01-2010, 05:19 AM
general php problem - ereg question - by El Forum - 03-01-2010, 06:25 AM
general php problem - ereg question - by El Forum - 03-01-2010, 06:33 AM
general php problem - ereg question - by El Forum - 03-01-2010, 07:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB