IMEI Validation - Luhn Check

Validate mobile IMEI numbers with this simple Luhn validation

Usage

Just call the function...


$imei = '123456789123456';
var_dump(validate_imei($imei));

// output:
false

 

Comments

Posted on 20.06.2014 09:50 by guest

Thanks very useful function, saved me time :)

Posted on 21.02.2013 17:06 by guest

Can you give an working example for noobs ?
Thanks.