What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-17 09:15:30
anti spam formulaire contact
// Test de mots suspects provenant de potentiels spams $badWords = array('http','www','.ru','My name is','visit', 'my website', 'viagra', 'pharmacy'); // entrez les termes à filtrer entre apostrophes et séparés par une virgule. $chec... Add solution -
PHP 2022-02-16 19:30:05
image upload and get attachment id in wordpress
/* this function for upload image in wordpress and return attchement id code by joshi yogesh ([email protected])*/ function cst_image_upload($img){ require_once( ABSPATH . 'wp-admin/includes/image.php' ); $attes_id = array(); $cnt = c... Add solution -
Java 2022-02-15 14:50:19
how to print the map in java
import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.stream.Stream; class MapUtil { // Program to print all keys present in the Map using keySet() in Java public... Add solution -
Java 2022-02-13 15:45:32
random string generator java
public static String getRandomString(int size) { // The string that we will return String rand = ""; // The chars that are used to generate the random string String chars = "1234567890-=!@#$%^&*()_+qwertyuiop[]\\QWERTYUIOP{}|asd... Add solution -
PHP 2022-02-09 21:25:15
php download all files in directory
Thanks to the help from @maxhud I was able to come up with the complete solution. Here is the final code snippet used to achieve my desired results: <?php /* creates a compressed zip file */ function create_zip($files = array(),$destination = '',$over... Add solution -
C# 2022-02-09 17:15:01
C# extend array
string[] items = new string[3] { "input1", "input2", "input3" }; string[] moreItems = new string[10] { "input4", "input5" }; // array to list List<string> itemsList = items.ToList<string>(); ... Add solution -
C# 2022-02-06 00:50:41
encrypption in C# console using mod of 26
namespace CaesarCipher { class Program { static void Main(string[] args) { // Determining if user wants to encrypt or decrypt. Console.WriteLine("Chose One: Encrypt / Decrypt"); string encryptDecrypt = Console.ReadL... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5