Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'function'

1994111 - php json encode with javascript : php javascript json function encode
  1. // PHP 4 >= 4.0.1, PHP 5
  2. public static function json_encode($array)
  3. {
  4.     return preg_replace_callback(
  5.         '/(?<=:)"function\((?:(?!}").)*}"/',
  6.         create_function('$string', "return str_replace('\\\\\"','\\\"',substr(\$string[0],1,-1));"),
  7.         json_encode($array)
  8.     );
  9.  
1854209 - WordPress dropdown pagination wordpress function pagination dropdown
preview unavailable
1853382 - WordPress dropdown pagination wordpress function pagination dropdown
preview unavailable
1492892 - PHP: array_2d_transform: php array function
  1. /**
  2. * Transform a 2-dimensional array into single-dimensional using
  3. * the key provided
  4. *
  5. * @author Jamie Hurst <jamiefdhurst@zenco.net>
  6. *
  7. * @param array $p_array 2D array to transform
  8. * @param string $p_key Key to transform using
  9.  
  10.  
1492757 - PHP: array_2d_transform: php array function
  1. /**
  2. * Transform a 2-dimensional array into single-dimensional using
  3. * the key provided
  4. *
  5. * @author Jamie Hurst <jamiefdhurst@zenco.net>
  6. *
  7. * @param array $p_array 2D array to transform
  8. * @param string $p_key Key to transform using
  9.  
  10.  
1414840 - smartTime function: php class function oop smarttime
  1. <?php
  2.  
  3.         /**
  4.          * Name:        Smart Time
  5.          * Description: Think realistically. Everyone likes you when you do :)
  6.  
  7.                        Note to self: You need to rewrite this function to use
  8.                         CASE instead of elseif statements, because nathan doesn't
  9.  
  10.  
951241 - SHA-256 hash function: c hash function bits sha-256 256bits 256
  1. /*
  2.  * An implementation of the SHA-256 hash function, this is endian neutral
  3.  * so should work just about anywhere.
  4.  *
  5.  * This code works much like the MD5 code provided by RSA. You sha_init()
  6.  * a "sha_state" then sha_process() the bytes you want and sha_done() to get
  7.  * the output.
  8.  *
  9.  
948076 - SHA-256 hash function: c hash function bits sha-256 256bits 256
  1. /*
  2. * An implementation of the SHA-256 hash function, this is endian neutral
  3. * so should work just about anywhere.
  4. *
  5. * This code works much like the MD5 code provided by RSA. You sha_init()
  6. * a "sha_state" then sha_process() the bytes you want and sha_done() to get
  7. * the output.
  8. *
  9.  
  10.  
834531 - Aikar php string array function var_export var_import
preview unavailable
648856 - gmod9 css gmod9 lua steam community isadmin function
preview unavailable
worth-right