php Programming Glossary: thestring
TripleDES in Perl/PHP/ColdFusion http://stackoverflow.com/questions/2817407/tripledes-in-perl-php-coldfusion be monsters cfset theKey 123412341234123412341234 cfset theString username test123 cfset strEncodedEnc Encrypt theString theKey.. theString username test123 cfset strEncodedEnc Encrypt theString theKey DESEDE Base64 resulting string strEncodedEnc tc Jb7E9w.. Circus here be Elephants theKey 123412341234123412341234 theString username test123 strEncodedEnc base64_encode mcrypt_ecb MCRYPT_3DES..
Regular expression to remove CSS comments http://stackoverflow.com/questions/3984380/regular-expression-to-remove-css-comments The following should do it preg_replace ' s ^ s ' '' theString Test case theString ' valid code comment next valid code not.. should do it preg_replace ' s ^ s ' '' theString Test case theString ' valid code comment next valid code not a comment this is comment.. not a comment this is comment ' preg_replace ' ^ ' ' ' theString # Returns 'valid code next valid code not a comment ' share..
|