BLOG

A LITTLE STORY ABOUT MY JOURNEY

Making sure PHP substr finishes on a word not a character

t could be done with a regex, something like this will get up to 260 characters from the start of string up to a word boundary: $line=$body; if (preg_match(‘/^.{1,260}\b/s’, $body, $match)) { $line=$match[0]; } OR $s = substr($string, 0, 261); $result = substr($s, 0, strrpos($s, ‘ ‘)); Rerence: http://stackoverflow.com/questions/1233290/making-sure-php-substr-finishes-on-a-word-not-a-character

Titanium Genymotion emulator 255 error

This issue may be adb incompatibility with the newest version of the platform SDK. The best solution for this issue with Genymotion is to set the Android SDK within Genymotion to your location. This can be found within the Settings page. Simply, just set “use custom Android SDK tools” in Settings -> ADB of Genymotion, […]

Google Maps Multiple Markers

Generate SH1 For android

Command for generate :

Javascript Email Validation

1 2 3 4