sourcecode

Tag

33 posts found

21 Feb 2014
0.93K
No Comments
PHP Select optgroup from array

I have a array that contains continent and with countries. [php] Array ( [0] => Array ( [continent_name] => asia [country_name] => pakistan [country_value] => 1 ) [1] => Array ( [continent_name] => asia [country_name] => india [country_value] => 2 ) [2] => Array ( [continent_name] => asia [country_name] =>

Post in

29 Nov 2013
0.31K
No Comments

this function allow you to generate random characters code,function suitable for Generate activation code for newly user account Generate shortenURL code, Generate temporary user password for changing password of account. [php] function generate_special_pass($pass_len = 8, $allow_special_chrs = true) { $allow_chrs = ‘ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz’; $special_chrs = ‘!@#$%^&*()_+’; if($allow_special_chrs) { $pass_chrs = $allow_chrs.$special_chrs;

Post in

16 Nov 2013
2K
No Comments
Php convert hash into hashtags from content

Mostly the largest social networks like #facebook , #twitter , #soundcloud and other application are using #hashtag functionality to sort their data and live-feed or content. So I have wrote this  tutorial to convert # from content and convert into a #hashtag 1. Define function named sdtutshashtag with a single parameter $post_content In $post_content

Post in