Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Puffin Rock Characters Plush Toy Set
anil1961
Updated:
Saturday at 3:51 PM
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Nov 4, 2026
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Nov 2, 2026
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Nov 1, 2026
Ad icon
V2ray VPN for Tunneling
hu KANNA
Updated:
Oct 22, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
Computers & Internet
Tips & Tricks
More Info about IMEI number
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Ayeshlive" data-source="post: 12578990" data-attributes="member: 363439"><p><span style="font-size: 18px">මම මගේ site එකේ links දානවා කියල හිතන්න එපා. වැදගත් වෙඉ කියල හිතුන nisai කියන්නේ. </span></p><p><span style="font-size: 18px">Luhn අල්ගොරිත්ම් එක ගැන ත්රෙඅඩ් එකේ තිබුන නිසා මම කියන්නම් php වලින් එක validate කරන්නේ කොහොමද කියල.</span></p><p><span style="font-size: 18px">luhn algorith එකෙන්ම තමි credit card numbers validate කරන්නෙත්.[/size=5]</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">[code]function imei_check($strDigits){</span></p><p><span style="font-size: 18px"> $sum = 0;</span></p><p><span style="font-size: 18px"> $alt = false;</span></p><p><span style="font-size: 18px"> for($i = strlen($strDigits) - 1; $i >= 0; $i--) </span></p><p><span style="font-size: 18px"> {</span></p><p><span style="font-size: 18px"> if($alt)</span></p><p><span style="font-size: 18px"> {</span></p><p><span style="font-size: 18px"> $temp = $strDigits[$i];</span></p><p><span style="font-size: 18px"> $temp *= 2;</span></p><p><span style="font-size: 18px"> $strDigits[$i] = ($temp > 9) ? $temp = $temp - 9 : $temp;</span></p><p><span style="font-size: 18px"> }</span></p><p><span style="font-size: 18px"> $sum += $strDigits[$i];</span></p><p><span style="font-size: 18px"> $alt = !$alt;</span></p><p><span style="font-size: 18px"> }</span></p><p><span style="font-size: 18px"> return $sum % 10 == 0;</span></p><p><span style="font-size: 18px">}</span></p><p><span style="font-size: 18px">මේ function එකෙන් luhn validate කරනවා.</span></p><p><span style="font-size: 18px">onenam IMEI eke thiyena digits 15 da kiyalath meka athulema check karanna puluwan.</span></p><p><span style="font-size: 18px">if (strlen($strDigits) != 15) {</span></p><p><span style="font-size: 18px">return FALSE;</span></p><p><span style="font-size: 18px">}</span></p><p><span style="font-size: 18px">[/code]</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">Live demo: <a href="http://tools.texby.com/unlock-codes" target="_blank">http://tools.texby.com/unlock-codes</a> .</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">IMEI number eke first 6 or 8 digits walin phone model eka kiyanna puluwan. e database ekak thiyenawa mama gawa. phone models 20000ka withara TAC thiyenawa. One aya PM karala illanna.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">Thanks <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /></span></p></blockquote><p></p>
[QUOTE="Ayeshlive, post: 12578990, member: 363439"] [size=5]මම මගේ site එකේ links දානවා කියල හිතන්න එපා. වැදගත් වෙඉ කියල හිතුන nisai කියන්නේ. Luhn අල්ගොරිත්ම් එක ගැන ත්රෙඅඩ් එකේ තිබුන නිසා මම කියන්නම් php වලින් එක validate කරන්නේ කොහොමද කියල. luhn algorith එකෙන්ම තමි credit card numbers validate කරන්නෙත්.[/size=5] [code]function imei_check($strDigits){ $sum = 0; $alt = false; for($i = strlen($strDigits) - 1; $i >= 0; $i--) { if($alt) { $temp = $strDigits[$i]; $temp *= 2; $strDigits[$i] = ($temp > 9) ? $temp = $temp - 9 : $temp; } $sum += $strDigits[$i]; $alt = !$alt; } return $sum % 10 == 0; } මේ function එකෙන් luhn validate කරනවා. onenam IMEI eke thiyena digits 15 da kiyalath meka athulema check karanna puluwan. if (strlen($strDigits) != 15) { return FALSE; } [/code] Live demo: [url]http://tools.texby.com/unlock-codes[/url] . IMEI number eke first 6 or 8 digits walin phone model eka kiyanna puluwan. e database ekak thiyenawa mama gawa. phone models 20000ka withara TAC thiyenawa. One aya PM karala illanna. Thanks :)[/size] [/QUOTE]
Insert quotes…
Verification
Payakata winadi keeyak tibeda?
Post reply
Top
Bottom