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
🔒 NordVPN Premium – 3 Months
hrdilshan
Updated:
Yesterday at 8:29 PM
🚀 Microsoft Office 365 Pro Plus – Lifetime Access! 🚀
hrdilshan
Updated:
Yesterday at 8:28 PM
Linkedin Premium Business / Careere /Sales Navigator - 1/2/3/6/9/12 Months - Reddem Link
hrdilshan
Updated:
Yesterday at 8:27 PM
Colombo
YEYE 3 in 1 Instant Coffee Mix 50 Sachet
Romeshka
Updated:
Wednesday at 12:16 AM
Colombo
Red Hat Certified System Administrator (RHCSA) - RHEL 10
Sanjeewani95
Updated:
Jul 3, 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
Nawa warak dahaya keeyada? (Namaya wadi kireema dahaya)
Post reply
Top
Bottom