What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-09-08 09:39:01
create a random question generator php
<?php //Connect with mysql $db = new mysqli("host","user","pass","db"); //Perform the query to choose random questions $query = $db->query("SELECT * FROM `table` ORDER BY RAND() LIMIT 2... Add solution -
PHP 2021-09-03 20:37:02
acf woocommerce variations
// Render fields at the bottom of variations - does not account for field group order or placement. add_action( 'woocommerce_product_after_variable_attributes', function( $loop, $variation_data, $variation ) { global $abcdefgh_i; // Custom global vari... Add solution -
PHP 2021-09-03 17:07:03
php regex file extension
$fileName = 'banner.jpg'; $ext = end(explode('.', $fileName)); $ext = substr(strrchr($fileName, '.'), 1); $ext = substr($fileName, strrpos($fileName, '.') + 1); $ext = preg_replace('/^.*\.([^.]+)$/D', '$1', $fileName); $ext = pathinfo($fileName, PATHINFO... Add solution -
Other 2021-09-01 07:50:01
display sequence of days
function weekendDaysToString($days, $lang = 'en') { $and = array('pt'=>'e', 'en'=>'and'); $strWeek = array( // config with more langs! 'pt'=>array("Segunda", "Terça", "Quarta", "Quinta... Add solution
Best helpers
Ranking is empty